diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-14 10:29:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-14 10:29:44 +0000 |
commit | ed084725e90889534beb44573715c2c0b482a627 (patch) | |
tree | aabc6c5e720ef38b9b865ff033d25a9abeb9f9a6 /os | |
parent | 51e52ffcf9cd4db7e629a112241ddd4960d22eb7 (diff) | |
download | ChibiOS-ed084725e90889534beb44573715c2c0b482a627.tar.gz ChibiOS-ed084725e90889534beb44573715c2c0b482a627.tar.bz2 ChibiOS-ed084725e90889534beb44573715c2c0b482a627.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7586 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/USBv1/usb_lld.h | 4 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/usb_lld.h b/os/hal/ports/STM32/LLD/USBv1/usb_lld.h index 3af0f6ded..ece8bf66a 100644 --- a/os/hal/ports/STM32/LLD/USBv1/usb_lld.h +++ b/os/hal/ports/STM32/LLD/USBv1/usb_lld.h @@ -94,12 +94,12 @@ #error "USB driver activated but no USB peripheral assigned"
#endif
-#if STM32_USB_USE_USB1 && \
+#if STM32_USB_USE_USB1 && \
!CORTEX_IS_VALID_KERNEL_PRIORITY(STM32_USB_USB1_HP_IRQ_PRIORITY)
#error "Invalid IRQ priority assigned to USB HP"
#endif
-#if STM32_USB_USE_USB1 && \
+#if STM32_USB_USE_USB1 && \
!CORTEX_IS_VALID_KERNEL_PRIORITY(STM32_USB_USB1_LP_IRQ_PRIORITY)
#error "Invalid IRQ priority assigned to USB LP"
#endif
diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index 1dbfefc62..19607550c 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -192,7 +192,12 @@ #define STM32_HAS_USART6 FALSE
/* USB attributes.*/
+#if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || \
+ defined(STM32F078xx)
+#define STM32_HAS_USB TRUE
+#else
#define STM32_HAS_USB FALSE
+#endif
#define STM32_HAS_OTG1 FALSE
#define STM32_HAS_OTG2 FALSE
|