aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/USB_HOST/main.c
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian (at) google's mail.com>2017-08-07 17:56:00 -0300
committerDiego Ismirlian <dismirlian (at) google's mail.com>2017-08-07 17:56:00 -0300
commitd72557da5a5144819e493cd0f16480b1f67b2226 (patch)
tree458f4fd35f869e4964d747bf100da099203a42fd /testhal/STM32/STM32F4xx/USB_HOST/main.c
parent84f28dd0b1916890081d5b205835741a9ae2a8b6 (diff)
parent4092650b1bc013a21c0eaf27f62c84dbf2aece42 (diff)
downloadChibiOS-Contrib-d72557da5a5144819e493cd0f16480b1f67b2226.tar.gz
ChibiOS-Contrib-d72557da5a5144819e493cd0f16480b1f67b2226.tar.bz2
ChibiOS-Contrib-d72557da5a5144819e493cd0f16480b1f67b2226.zip
Merge branch 'master' of https://github.com/dismirlian/ChibiOS-Contrib into usbh_devel
Diffstat (limited to 'testhal/STM32/STM32F4xx/USB_HOST/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/USB_HOST/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F4xx/USB_HOST/main.c b/testhal/STM32/STM32F4xx/USB_HOST/main.c
index 44210a3..595e454 100644
--- a/testhal/STM32/STM32F4xx/USB_HOST/main.c
+++ b/testhal/STM32/STM32F4xx/USB_HOST/main.c
@@ -126,7 +126,10 @@ start:
if (usbhftdipGetState(ftdipp) != USBHFTDIP_STATE_READY)
goto start;
if (!shelltp) {
- shelltp = shellCreate(&shell_cfg1, SHELL_WA_SIZE, NORMALPRIO);
+ shelltp = chThdCreateFromHeap(NULL, SHELL_WA_SIZE,
+ "shell", NORMALPRIO,
+ shellThread, (void *)&shell_cfg1);
+
} else if (chThdTerminatedX(shelltp)) {
chThdRelease(shelltp);
if (usbhftdipGetState(ftdipp) != USBHFTDIP_STATE_READY)