aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32L152-DISCOVERY/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARMCM3-STM32L152-DISCOVERY/main.c')
-rw-r--r--demos/ARMCM3-STM32L152-DISCOVERY/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/ARMCM3-STM32L152-DISCOVERY/main.c b/demos/ARMCM3-STM32L152-DISCOVERY/main.c
index a56f81efa..f5e583c81 100644
--- a/demos/ARMCM3-STM32L152-DISCOVERY/main.c
+++ b/demos/ARMCM3-STM32L152-DISCOVERY/main.c
@@ -28,12 +28,17 @@
*/
static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
- static uint32_t seconds_counter;
(void)arg;
while (TRUE) {
- chThdSleepMilliseconds(1000);
- seconds_counter++;
+ palSetPad(GPIOB, GPIOB_LED3);
+ chThdSleepMilliseconds(250);
+ palClearPad(GPIOB, GPIOB_LED3);
+ chThdSleepMilliseconds(250);
+ palSetPad(GPIOB, GPIOB_LED4);
+ chThdSleepMilliseconds(250);
+ palClearPad(GPIOB, GPIOB_LED4);
+ chThdSleepMilliseconds(250);
}
}