aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/USB_HOST/main.c
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2017-06-07 11:55:09 +0200
committerFabien Poussin <fabien.poussin@gmail.com>2017-06-07 11:55:09 +0200
commit830f09e2b7d9af3146b1ecd8821664d874355005 (patch)
treee220861b9418d37980e69235d37477ac23118eaa /testhal/STM32/STM32F4xx/USB_HOST/main.c
parent46a0296ed6f68dd2a13f856ab2933a6a520af378 (diff)
downloadChibiOS-Contrib-830f09e2b7d9af3146b1ecd8821664d874355005.tar.gz
ChibiOS-Contrib-830f09e2b7d9af3146b1ecd8821664d874355005.tar.bz2
ChibiOS-Contrib-830f09e2b7d9af3146b1ecd8821664d874355005.zip
Fixes for USB host example to compile on 4.0.x
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 ece9fd5..9652da3 100644
--- a/testhal/STM32/STM32F4xx/USB_HOST/main.c
+++ b/testhal/STM32/STM32F4xx/USB_HOST/main.c
@@ -124,7 +124,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)