aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/USB_CDC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-21 11:04:42 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-21 11:04:42 +0000
commit659ae9692564f5bd99435cfbf3564a5e78d09ace (patch)
tree10eb788864f585ce7b1409667edcae9b8b26b9ca /testhal/STM32F4xx/USB_CDC
parent603771beb4849042327ac5164e6a52f1d74ec6a7 (diff)
downloadChibiOS-659ae9692564f5bd99435cfbf3564a5e78d09ace.tar.gz
ChibiOS-659ae9692564f5bd99435cfbf3564a5e78d09ace.tar.bz2
ChibiOS-659ae9692564f5bd99435cfbf3564a5e78d09ace.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4602 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F4xx/USB_CDC')
-rw-r--r--testhal/STM32F4xx/USB_CDC/mcuconf.h12
-rw-r--r--testhal/STM32F4xx/USB_CDC/readme.txt2
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 **