diff options
Diffstat (limited to 'demos/AVR/RT-MT-DB-X4/main.c')
-rw-r--r-- | demos/AVR/RT-MT-DB-X4/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/AVR/RT-MT-DB-X4/main.c b/demos/AVR/RT-MT-DB-X4/main.c index 706cef7a8..cf97486db 100644 --- a/demos/AVR/RT-MT-DB-X4/main.c +++ b/demos/AVR/RT-MT-DB-X4/main.c @@ -17,12 +17,14 @@ #include "ch.h"
#include "hal.h"
+/*
+ * LED blinker thread, times are in milliseconds.
+ */
static THD_WORKING_AREA(waThread1, 32);
static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("Blinker");
-
while (true) {
palClearPad(IOPORT5, PORTE_LED);
chThdSleepMilliseconds(1000);
@@ -51,7 +53,7 @@ int main(void) { */
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while(TRUE) {
+ while (TRUE) {
chThdSleepMilliseconds(100);
}
}
|