diff options
author | Jonathan Struebel <jonathan.struebel@gmail.com> | 2016-04-18 20:40:13 -0700 |
---|---|---|
committer | Jonathan Struebel <jonathan.struebel@gmail.com> | 2016-04-18 20:40:13 -0700 |
commit | c523fa6f7aa0e64600e0a82082bd4067cbc2a4a5 (patch) | |
tree | f9a3e7291e5ebdfa10146abe721041d4b0d0bed2 /demos | |
parent | 17acbeb15f21923150e29ad57201748a76b43110 (diff) | |
download | ChibiOS-Contrib-c523fa6f7aa0e64600e0a82082bd4067cbc2a4a5.tar.gz ChibiOS-Contrib-c523fa6f7aa0e64600e0a82082bd4067cbc2a4a5.tar.bz2 ChibiOS-Contrib-c523fa6f7aa0e64600e0a82082bd4067cbc2a4a5.zip |
[KINETIS] Moved time variable definition in blinker thread
Diffstat (limited to 'demos')
-rw-r--r-- | demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/main.c b/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/main.c index f789ad1..0f4da4d 100644 --- a/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/main.c +++ b/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/main.c @@ -26,12 +26,12 @@ SerialConfig s0cfg = { */
static THD_WORKING_AREA(waBlinkThread, 128);
static THD_FUNCTION(BlinkThread, arg) {
+ systime_t time = 500;
(void)arg;
chRegSetThreadName("blinker");
while (true) {
- systime_t time = 500;
palTogglePad(GPIO_LED_BLUE, PIN_LED_BLUE);
chThdSleepMilliseconds(time);
}
|