diff options
Diffstat (limited to 'demos/AVR/RT-ARDUINO-UNO/main.c')
-rw-r--r-- | demos/AVR/RT-ARDUINO-UNO/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/AVR/RT-ARDUINO-UNO/main.c b/demos/AVR/RT-ARDUINO-UNO/main.c index b4c0176c5..d5696e3e3 100644 --- a/demos/AVR/RT-ARDUINO-UNO/main.c +++ b/demos/AVR/RT-ARDUINO-UNO/main.c @@ -17,6 +17,9 @@ #include "ch.h"
#include "hal.h"
+/*
+ * LED blinker thread, times are in milliseconds.
+ */
static THD_WORKING_AREA(waThread1, 32);
static THD_FUNCTION(Thread1, arg) {
@@ -43,8 +46,6 @@ int main(void) { halInit();
chSysInit();
- palClearPad(IOPORT2, PORTB_LED1);
-
/*
* Activates the serial driver 1 using the driver default configuration.
*/
@@ -56,7 +57,8 @@ int main(void) { chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
chnWrite(&SD1, (const uint8_t *)"Hello World!\r\n", 14);
- while(TRUE) {
+
+ while (TRUE) {
chThdSleepMilliseconds(1000);
}
}
|