summaryrefslogtreecommitdiff
path: root/chip/stm32/usb-stm32f0.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usb-stm32f0.c')
-rw-r--r--chip/stm32/usb-stm32f0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/usb-stm32f0.c b/chip/stm32/usb-stm32f0.c
index 97bb93cafd..de755f2fdd 100644
--- a/chip/stm32/usb-stm32f0.c
+++ b/chip/stm32/usb-stm32f0.c
@@ -14,13 +14,13 @@ void usb_connect(void)
/* USB is in use */
disable_sleep(SLEEP_MASK_USB_DEVICE);
- STM32_USB_BCDR |= (1 << 15) /* DPPU */;
+ STM32_USB_BCDR |= BIT(15) /* DPPU */;
}
void usb_disconnect(void)
{
/* disable pull-up on DP to disconnect */
- STM32_USB_BCDR &= ~(1 << 15) /* DPPU */;
+ STM32_USB_BCDR &= ~BIT(15) /* DPPU */;
/* USB is off, so sleep whenever */
enable_sleep(SLEEP_MASK_USB_DEVICE);