summaryrefslogtreecommitdiff
path: root/chip/stm32/crc_hw.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/crc_hw.h')
-rw-r--r--chip/stm32/crc_hw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/crc_hw.h b/chip/stm32/crc_hw.h
index d6959310d6..038dc76f7c 100644
--- a/chip/stm32/crc_hw.h
+++ b/chip/stm32/crc_hw.h
@@ -13,7 +13,7 @@
static inline void crc32_init(void)
{
/* switch on CRC controller */
- STM32_RCC_AHBENR |= 1 << 6; /* switch on CRC controller */
+ STM32_RCC_AHBENR |= BIT(6); /* switch on CRC controller */
/* Delay 1 AHB clock cycle after the clock is enabled */
clock_wait_bus_cycles(BUS_AHB, 1);
/* reset CRC state */