aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-04-22 13:08:10 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-04-22 13:08:10 +0000
commit75962347e8a67ddc3d97e0034204e86bfed23652 (patch)
tree6e9b1919eeb956effb8743db373ecb88da70b9d2 /demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
parentdde9abf1edc845608184765116ed9247e2f4f298 (diff)
downloadChibiOS-75962347e8a67ddc3d97e0034204e86bfed23652.tar.gz
ChibiOS-75962347e8a67ddc3d97e0034204e86bfed23652.tar.bz2
ChibiOS-75962347e8a67ddc3d97e0034204e86bfed23652.zip
More API in the C++ wrapper, minor documentation fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11948 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp')
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
index 382148e7c..6c09344f4 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
+++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
@@ -184,8 +184,8 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) {
- tester.start(NORMALPRIO);
- tester.wait();
+ ThreadReference tref = tester.start(NORMALPRIO);
+ tref.wait();
};
BaseThread::sleep(TIME_MS2I(500));
}