aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 15:49:25 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 15:49:25 +0000
commitb8352d5f4b945b307d5850b3bb2259e9ea3c75a8 (patch)
tree4d770a6cab369323025fe2f1aed80cdb55852e3a /demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
parent4efd9dfd7d4acf6347b7227bb9f251260c7191d6 (diff)
downloadChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.gz
ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.bz2
ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10938 35acf78f-673a-0410-8e92-d51de3d6d3f4
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 67868c5bc..5ebcdc852 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
+++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
@@ -95,7 +95,7 @@ protected:
while (true) {
switch(curr->action) {
case SLEEP:
- sleep(MS2ST(curr->value));
+ sleep(TIME_MS2I(curr->value));
break;
case GOTO:
curr = &base[curr->value];
@@ -187,7 +187,7 @@ int main(void) {
tester.start(NORMALPRIO);
tester.wait();
};
- BaseThread::sleep(MS2ST(500));
+ BaseThread::sleep(TIME_MS2I(500));
}
return 0;