aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-11 15:26:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-11 15:26:51 +0000
commitee44b486e5e9f5b0c033e040c1ef5038ac4adee7 (patch)
treedb0f4aa1620f1f727cc46f8c06930a5171aaba20 /testhal/STM32F4xx
parent5b6fb4adf4e5c6a17a83e5665c4daf118e1c599f (diff)
downloadChibiOS-ee44b486e5e9f5b0c033e040c1ef5038ac4adee7.tar.gz
ChibiOS-ee44b486e5e9f5b0c033e040c1ef5038ac4adee7.tar.bz2
ChibiOS-ee44b486e5e9f5b0c033e040c1ef5038ac4adee7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6454 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F4xx')
-rw-r--r--testhal/STM32F4xx/USB_CDC/.project5
-rw-r--r--testhal/STM32F4xx/USB_CDC/main.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/testhal/STM32F4xx/USB_CDC/.project b/testhal/STM32F4xx/USB_CDC/.project
index 135abc544..defd5f312 100644
--- a/testhal/STM32F4xx/USB_CDC/.project
+++ b/testhal/STM32F4xx/USB_CDC/.project
@@ -25,11 +25,6 @@
</natures>
<linkedResources>
<link>
- <name>board</name>
- <type>2</type>
- <locationURI>CHIBIOS/boards/OLIMEX_STM32_E407</locationURI>
- </link>
- <link>
<name>os</name>
<type>2</type>
<locationURI>CHIBIOS/os</locationURI>
diff --git a/testhal/STM32F4xx/USB_CDC/main.c b/testhal/STM32F4xx/USB_CDC/main.c
index 2426320ff..dd01ecb25 100644
--- a/testhal/STM32F4xx/USB_CDC/main.c
+++ b/testhal/STM32F4xx/USB_CDC/main.c
@@ -457,7 +457,8 @@ static msg_t Thread1(void *arg) {
* Application entry point.
*/
int main(void) {
-thread_t *shelltp = NULL;
+ static THD_WORKING_AREA(wa_usb_lld_pump, STM32_USB_OTG_THREAD_STACK_SIZE);
+ thread_t *shelltp = NULL;
/*
* System initializations.
@@ -480,6 +481,8 @@ thread_t *shelltp = NULL;
* Note, a delay is inserted in order to not have to disconnect the cable
* after a reset.
*/
+ chThdCreateStatic(wa_usb_lld_pump, sizeof(wa_usb_lld_pump),
+ STM32_USB_OTG_THREAD_PRIO, usb_lld_pump, serusbcfg.usbp);
usbDisconnectBus(serusbcfg.usbp);
chThdSleepMilliseconds(1500);
usbStart(serusbcfg.usbp, &usbcfg);