summaryrefslogtreecommitdiff
path: root/ucoo/hal/usb/usb.stm32.cc
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-15 12:05:06 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit41fde87ed8d1fcd593777bdfae2fa9e65006d984 (patch)
tree48a82b5ba790741d1f0bcc97eb183ea4b045d7b0 /ucoo/hal/usb/usb.stm32.cc
parent751a7d2ba7a0fbb9c6dae2d91891f0cc74897a2a (diff)
build: add support for out of tree modules
Diffstat (limited to 'ucoo/hal/usb/usb.stm32.cc')
-rw-r--r--ucoo/hal/usb/usb.stm32.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucoo/hal/usb/usb.stm32.cc b/ucoo/hal/usb/usb.stm32.cc
index 37595e8..93f1782 100644
--- a/ucoo/hal/usb/usb.stm32.cc
+++ b/ucoo/hal/usb/usb.stm32.cc
@@ -31,7 +31,7 @@
#include "usb_desc.stm32.h"
#if defined (TARGET_stm32f4)
-# if UCOO_CONFIG_HAL_USB_DRIVER_HS
+# if CONFIG_UCOO_HAL_USB_DRIVER_HS
# define usb_isr otg_hs_isr
# define usb_driver otghs_usb_driver
# else
@@ -82,7 +82,7 @@ UsbStreamControl::UsbStreamControl (const char *vendor, const char *product)
strings[0] = vendor;
strings[1] = product;
#if defined (TARGET_stm32f4)
-# if UCOO_CONFIG_HAL_USB_DRIVER_HS
+# if CONFIG_UCOO_HAL_USB_DRIVER_HS
rcc_periph_clock_enable (RCC_OTGHS);
rcc_periph_clock_enable (RCC_GPIOB);
gpio_mode_setup (GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE,
@@ -103,7 +103,7 @@ UsbStreamControl::UsbStreamControl (const char *vendor, const char *product)
strings, lengthof (strings),
usb_control_buffer, sizeof (usb_control_buffer));
usbd_register_set_config_callback (usbdev, set_config);
-#if UCOO_CONFIG_HAL_USB_DRIVER_HS
+#if CONFIG_UCOO_HAL_USB_DRIVER_HS
nvic_enable_irq (NVIC_OTG_HS_IRQ);
#else
nvic_enable_irq (NVIC_OTG_FS_IRQ);