aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR/RT-MT-DB-X4/main.c
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2018-02-04 13:36:12 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2018-02-04 13:36:12 +0000
commitdacb403627fc97dce0bf64b3c4ebecb879f3ce0d (patch)
tree4afb0b26909f7697d8c854e60ada14499c7585b0 /demos/AVR/RT-MT-DB-X4/main.c
parentd9ad41cec2dd7f2d23e2a700adfcf7a35568d43c (diff)
downloadChibiOS-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-MT-DB-X4/main.c')
-rw-r--r--demos/AVR/RT-MT-DB-X4/main.c6
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);
}
}