diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-13 12:35:40 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-13 12:35:40 +0000 |
commit | cb725828056b9564ab5d723bd0738375a83c077c (patch) | |
tree | 1db3326fe3ea3b0103830c5dfdf16518aec9e404 /demos/STM32 | |
parent | 882e9afb959e5ecc8800a79bb3cf3dabf1a7ccc6 (diff) | |
download | ChibiOS-cb725828056b9564ab5d723bd0738375a83c077c.tar.gz ChibiOS-cb725828056b9564ab5d723bd0738375a83c077c.tar.bz2 ChibiOS-cb725828056b9564ab5d723bd0738375a83c077c.zip |
Fixed and optimizations, NOW it seems to work for intervals larger than system time.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rt5_dev_point1@10818 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32')
-rw-r--r-- | demos/STM32/RT-STM32F746G-DISCOVERY/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c index 0e62e3604..5199ddf37 100644 --- a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c @@ -29,9 +29,9 @@ static THD_FUNCTION(Thread1, arg) { chRegSetThreadName("blinker");
while (true) {
palSetLine(LINE_ARD_D13);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(1000);
palClearLine(LINE_ARD_D13);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(1000);
}
}
@@ -64,7 +64,7 @@ int main(void) { /*
* Creates the example thread.
*/
- chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
+ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO+1, Thread1, NULL);
/*
* Normal main() thread activity, in this demo it does nothing except
@@ -73,6 +73,6 @@ int main(void) { while (true) {
// if (palReadLine(LINE_BUTTON_USER))
// test_execute((BaseSequentialStream *)&SD1);
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(2000);
}
}
|