diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2018-02-04 13:36:12 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2018-02-04 13:36:12 +0000 |
commit | dacb403627fc97dce0bf64b3c4ebecb879f3ce0d (patch) | |
tree | 4afb0b26909f7697d8c854e60ada14499c7585b0 /demos/AVR/RT-DIGISPARK-ATTINY-167 | |
parent | d9ad41cec2dd7f2d23e2a700adfcf7a35568d43c (diff) | |
download | ChibiOS-dacb403627fc97dce0bf64b3c4ebecb879f3ce0d.tar.gz ChibiOS-dacb403627fc97dce0bf64b3c4ebecb879f3ce0d.tar.bz2 ChibiOS-dacb403627fc97dce0bf64b3c4ebecb879f3ce0d.zip |
Update all demos comments and indent
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11429 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR/RT-DIGISPARK-ATTINY-167')
-rw-r--r-- | demos/AVR/RT-DIGISPARK-ATTINY-167/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c b/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c index 96ee92295..5c1332643 100644 --- a/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c +++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c @@ -29,12 +29,14 @@ const UARTConfig uartConf = { 38400, /* UART baudrate. */
};
+/*
+ * LED blinker thread, times are in milliseconds.
+ */
static THD_WORKING_AREA(waThread1, 32);
static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("Blinker");
-
while (true) {
palTogglePad(IOPORT2, PORTB_LED1);
uartStartSend(&UARTD1, 30, (const void *) "ChibiOS PORT on ATtiny-167!.\n\r");
@@ -57,9 +59,7 @@ int main(void) { halInit();
chSysInit();
- //palClearPad(IOPORT2, PORTB_LED1);
-
- /*
+ /*
* Initialize the UART interface.
*/
uartInit();
@@ -79,7 +79,7 @@ int main(void) { */
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while(TRUE) {
+ while (TRUE) {
chThdSleepMilliseconds(1000);
}
}
|