aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-02-27 16:22:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-02-27 16:22:37 +0000
commit215138abcf29dd99fa4916c442a4626d3550777a (patch)
tree0b17a28f0426eec0c7c101840616247977cf28bd /testhal/STM32/STM32F4xx
parent04429bc93f8c06ffd6dd43b9048c2743c237f0a7 (diff)
downloadChibiOS-215138abcf29dd99fa4916c442a4626d3550777a.tar.gz
ChibiOS-215138abcf29dd99fa4916c442a4626d3550777a.tar.bz2
ChibiOS-215138abcf29dd99fa4916c442a4626d3550777a.zip
Enhanced .ld files. Mass update of shell demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8963 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r--testhal/STM32/STM32F4xx/SDC/main.c1
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC/main.c1
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c4
3 files changed, 2 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F4xx/SDC/main.c b/testhal/STM32/STM32F4xx/SDC/main.c
index 5c319fc09..9b7b9df2d 100644
--- a/testhal/STM32/STM32F4xx/SDC/main.c
+++ b/testhal/STM32/STM32F4xx/SDC/main.c
@@ -331,7 +331,6 @@ int main(void) {
"shell", NORMALPRIO + 1,
shellThread, (void *)&shell_cfg1);
chThdWait(shelltp); /* Waiting termination. */
- chThdFreeToHeap(shelltp); /* Returning memory to heap. */
chThdSleepMilliseconds(1000);
}
}
diff --git a/testhal/STM32/STM32F4xx/USB_CDC/main.c b/testhal/STM32/STM32F4xx/USB_CDC/main.c
index cffc8427a..50dd81eec 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC/main.c
+++ b/testhal/STM32/STM32F4xx/USB_CDC/main.c
@@ -162,7 +162,6 @@ int main(void) {
"shell", NORMALPRIO + 1,
shellThread, (void *)&shell_cfg1);
chThdWait(shelltp); /* Waiting termination. */
- chThdFreeToHeap(shelltp); /* Returning memory to heap. */
}
chThdSleepMilliseconds(1000);
}
diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c
index 84c7ec3fc..3b768f331 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c
+++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c
@@ -176,11 +176,11 @@ int main(void) {
/* Waiting for an exit event then freeing terminated shells.*/
chEvtWaitAny(EVENT_MASK(0));
if (chThdTerminatedX(shelltp1)) {
- chThdFreeToHeap(shelltp1);
+ chThdRelease(shelltp1);
shelltp1 = NULL;
}
if (chThdTerminatedX(shelltp2)) {
- chThdFreeToHeap(shelltp2);
+ chThdRelease(shelltp2);
shelltp2 = NULL;
}
}