From b9192d716f3dff8467a46a241de41be218b2aa49 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 1 Nov 2014 09:21:26 +0000 Subject: [PATCH] Fixed bug #545. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7438 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F429-DISCOVERY/main.c | 3 -- ...xx-USB_CDC (OpenOCD, Flash and Run).launch | 52 +++++++++++++++++++ testhal/STM32/STM32F4xx/USB_CDC/main.c | 3 -- 3 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 testhal/STM32/STM32F4xx/USB_CDC/debug/STM32F4xx-USB_CDC (OpenOCD, Flash and Run).launch diff --git a/demos/STM32/RT-STM32F429-DISCOVERY/main.c b/demos/STM32/RT-STM32F429-DISCOVERY/main.c index 6db720300..43f5c1d05 100644 --- a/demos/STM32/RT-STM32F429-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F429-DISCOVERY/main.c @@ -136,7 +136,6 @@ static const ShellConfig shell_cfg1 = { * Application entry point. */ int main(void) { - static THD_WORKING_AREA(wa_usb_lld_pump, STM32_USB_OTG_THREAD_STACK_SIZE); thread_t *shelltp = NULL; /* @@ -165,8 +164,6 @@ int main(void) { * 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(1000); usbStart(serusbcfg.usbp, &usbcfg); diff --git a/testhal/STM32/STM32F4xx/USB_CDC/debug/STM32F4xx-USB_CDC (OpenOCD, Flash and Run).launch b/testhal/STM32/STM32F4xx/USB_CDC/debug/STM32F4xx-USB_CDC (OpenOCD, Flash and Run).launch new file mode 100644 index 000000000..4a04bbd16 --- /dev/null +++ b/testhal/STM32/STM32F4xx/USB_CDC/debug/STM32F4xx-USB_CDC (OpenOCD, Flash and Run).launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testhal/STM32/STM32F4xx/USB_CDC/main.c b/testhal/STM32/STM32F4xx/USB_CDC/main.c index a8b57cd25..95ac3fc96 100644 --- a/testhal/STM32/STM32F4xx/USB_CDC/main.c +++ b/testhal/STM32/STM32F4xx/USB_CDC/main.c @@ -457,7 +457,6 @@ static msg_t Thread1(void *arg) { * Application entry point. */ int main(void) { - static THD_WORKING_AREA(wa_usb_lld_pump, STM32_USB_OTG_THREAD_STACK_SIZE); thread_t *shelltp = NULL; /* @@ -481,8 +480,6 @@ int main(void) { * 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);