summaryrefslogtreecommitdiff
path: root/board/twinkie/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/twinkie/board.c')
-rw-r--r--board/twinkie/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/twinkie/board.c b/board/twinkie/board.c
index 513d45d9a7..f15a55400c 100644
--- a/board/twinkie/board.c
+++ b/board/twinkie/board.c
@@ -34,10 +34,10 @@ void vbus_event(enum gpio_signal signal)
void board_config_pre_init(void)
{
/* enable SYSCFG clock */
- STM32_RCC_APB2ENR |= 1 << 0;
+ STM32_RCC_APB2ENR |= BIT(0);
/* Remap USART DMA to match the USART driver and TIM2 DMA */
- STM32_SYSCFG_CFGR1 |= (1 << 9) | (1 << 10) /* Remap USART1 RX/TX DMA */
- | (1 << 29);/* Remap TIM2 DMA */
+ STM32_SYSCFG_CFGR1 |= BIT(9) | BIT(10) /* Remap USART1 RX/TX DMA */
+ | BIT(29);/* Remap TIM2 DMA */
/* 40 MHz pin speed on UART PA9/PA10 */
STM32_GPIO_OSPEEDR(GPIO_A) |= 0x003C0000;
/* 40 MHz pin speed on TX clock out PB9 */