aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-03 13:50:15 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-03 13:50:15 +0000
commit1292b0230ccdef3a445647185e12ac159d7a9ed8 (patch)
treeaf832979f6e4cd7ef345301ef9bfa8e8dbe1fe22 /demos
parent6db8c459a58514b2c49fbe94b9ff73aaf7ccba5f (diff)
downloadChibiOS-1292b0230ccdef3a445647185e12ac159d7a9ed8.tar.gz
ChibiOS-1292b0230ccdef3a445647185e12ac159d7a9ed8.tar.bz2
ChibiOS-1292b0230ccdef3a445647185e12ac159d7a9ed8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6257 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/nil/NIL-STM32F051-DISCOVERY/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/nil/NIL-STM32F051-DISCOVERY/main.c b/demos/nil/NIL-STM32F051-DISCOVERY/main.c
index 2600550bb..d92c94b35 100644
--- a/demos/nil/NIL-STM32F051-DISCOVERY/main.c
+++ b/demos/nil/NIL-STM32F051-DISCOVERY/main.c
@@ -29,9 +29,9 @@ THD_FUNCTION(Thread1, arg) {
while (true) {
// gpioSetPad(GPIOC, GPIOC_LED4);
- nilThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(500);
// gpioClearPad(GPIOC, GPIOC_LED4);
- nilThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(500);
}
}
@@ -45,9 +45,9 @@ THD_FUNCTION(Thread2, arg) {
while (true) {
// gpioSetPad(GPIOC, GPIOC_LED3);
- nilThdSleepMilliseconds(250);
+ chThdSleepMilliseconds(250);
// gpioClearPad(GPIOC, GPIOC_LED3);
- nilThdSleepMilliseconds(250);
+ chThdSleepMilliseconds(250);
}
}
@@ -71,7 +71,7 @@ int main(void) {
* - Nil RTOS initialization.
*/
// hwInit();
- nilSysInit();
+ chSysInit();
/* This is now the idle thread loop, you may perform here a low priority
task but you must never try to sleep or wait in this loop.*/