summaryrefslogtreecommitdiff
path: root/chip/stm32/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usb.c')
-rw-r--r--chip/stm32/usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/stm32/usb.c b/chip/stm32/usb.c
index c8768823d7..82b418707a 100644
--- a/chip/stm32/usb.c
+++ b/chip/stm32/usb.c
@@ -351,7 +351,7 @@ static void ep0_event(enum usb_ep_event evt)
if (evt != USB_EVENT_RESET)
return;
- STM32_USB_EP(0) = (1 << 9) /* control EP */ |
+ STM32_USB_EP(0) = BIT(9) /* control EP */ |
(2 << 4) /* TX NAK */ |
(3 << 12) /* RX VALID */;
@@ -673,8 +673,8 @@ void usb_init(void)
STM32_USB_BTABLE = 0;
/* EXTI18 is USB wake up interrupt */
- /* STM32_EXTI_RTSR |= 1 << 18; */
- /* STM32_EXTI_IMR |= 1 << 18; */
+ /* STM32_EXTI_RTSR |= BIT(18); */
+ /* STM32_EXTI_IMR |= BIT(18); */
/* Enable interrupt handlers */
task_enable_irq(STM32_IRQ_USB_LP);