summaryrefslogtreecommitdiff
path: root/board/hammer/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/hammer/board.c')
-rw-r--r--board/hammer/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index 06f231e25a..8b3de4268c 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -224,7 +224,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_INIT_PWM - 1);
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 */
/*
@@ -232,7 +232,7 @@ void board_config_pre_init(void)
* Chan 4 : USART1_TX
* Chan 5 : USART1_RX
*/
- STM32_SYSCFG_CFGR1 |= (1 << 9) | (1 << 10); /* Remap USART1 RX/TX DMA */
+ STM32_SYSCFG_CFGR1 |= BIT(9) | BIT(10); /* Remap USART1 RX/TX DMA */
}
int board_has_keyboard_backlight(void)