diff options
Diffstat (limited to 'testhal/STM32F4xx')
-rw-r--r-- | testhal/STM32F4xx/USB_CDC/mcuconf.h | 12 | ||||
-rw-r--r-- | testhal/STM32F4xx/USB_CDC/readme.txt | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/testhal/STM32F4xx/USB_CDC/mcuconf.h b/testhal/STM32F4xx/USB_CDC/mcuconf.h index a441dda57..cf25addea 100644 --- a/testhal/STM32F4xx/USB_CDC/mcuconf.h +++ b/testhal/STM32F4xx/USB_CDC/mcuconf.h @@ -237,3 +237,15 @@ #define STM32_I2C_I2C2_DMA_ERROR_HOOK() chSysHalt()
#define STM32_I2C_I2C3_DMA_ERROR_HOOK() chSysHalt()
+/*
+ * USB driver system settings.
+ */
+#define STM32_USB_USE_OTG1 TRUE
+#define STM32_USB_USE_OTG2 TRUE
+#define STM32_USB_OTG1_IRQ_PRIORITY 14
+#define STM32_USB_OTG2_IRQ_PRIORITY 14
+#define STM32_USB_OTG1_RX_FIFO_SIZE 512
+#define STM32_USB_OTG2_RX_FIFO_SIZE 1024
+#define STM32_USB_OTG_THREAD_PRIO LOWPRIO
+#define STM32_USB_OTG_THREAD_STACK_SIZE 128
+#define STM32_USB_OTGFIFO_FILL_BASEPRI 0
diff --git a/testhal/STM32F4xx/USB_CDC/readme.txt b/testhal/STM32F4xx/USB_CDC/readme.txt index 38599111d..a619a3ec1 100644 --- a/testhal/STM32F4xx/USB_CDC/readme.txt +++ b/testhal/STM32F4xx/USB_CDC/readme.txt @@ -8,7 +8,7 @@ The demo runs on an Olimex STM32-E407 board. ** The Demo **
-The application demonstrates the use of the STM32 USB driver.
+The application demonstrates the use of the STM32 USB (OTG) driver.
** Build Procedure **
|