| 1234567891011121314151617181920 |
- #include "nil.h"
- #include "hal.h"
- #include "test.h"
- /*
- * This is a periodic thread that does absolutely nothing except flashing
- * a LED.
- */
- THD_WORKING_AREA(waThread1, 128);
- THD_FUNCTION(Thread1, arg) {
- (void)arg;
- while (true) {
- palSetPad(GPIOD, GPIOD_LED3); /* Orange. */
- chThdSleepMilliseconds(500);
- palClearPad(GPIOD, GPIOD_LED3); /* Orange. */
- chThdSleepMilliseconds(500);
- }
- }
|