diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-19 17:02:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-19 17:02:47 +0000 |
commit | 2bae95e6cc8232de0002a5c410d0b165b5d7c8c2 (patch) | |
tree | e52e55b7d367abf59c1361a3df5504ed382362eb /demos/ARMCM3-STM32L152-DISCOVERY | |
parent | c4c18450fffdfcc1e39a753d373d65e43c708117 (diff) | |
download | ChibiOS-2bae95e6cc8232de0002a5c410d0b165b5d7c8c2.tar.gz ChibiOS-2bae95e6cc8232de0002a5c410d0b165b5d7c8c2.tar.bz2 ChibiOS-2bae95e6cc8232de0002a5c410d0b165b5d7c8c2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3064 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32L152-DISCOVERY')
-rw-r--r-- | demos/ARMCM3-STM32L152-DISCOVERY/main.c | 11 |
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);
}
}
|