From bd809f5f652f8f6bbcf7bcc1c68b979245b1b511 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 4 Dec 2012 13:03:14 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4869 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM4-STM32F303-DISCOVERY/main.c | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'demos') diff --git a/demos/ARMCM4-STM32F303-DISCOVERY/main.c b/demos/ARMCM4-STM32F303-DISCOVERY/main.c index e64196943..3ff8b8820 100644 --- a/demos/ARMCM4-STM32F303-DISCOVERY/main.c +++ b/demos/ARMCM4-STM32F303-DISCOVERY/main.c @@ -32,11 +32,30 @@ static msg_t Thread1(void *arg) { (void)arg; chRegSetThreadName("blinker"); while (TRUE) { - /* TODO */ -// palSetPad(GPIOD, GPIOD_LED3); /* Orange. */ - chThdSleepMilliseconds(500); -// palClearPad(GPIOD, GPIOD_LED3); /* Orange. */ - chThdSleepMilliseconds(500); + palSetPad(GPIOE, GPIOE_LED3_RED); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED3_RED); + palSetPad(GPIOE, GPIOE_LED5_ORANGE); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED5_ORANGE); + palSetPad(GPIOE, GPIOE_LED7_GREEN); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED7_GREEN); + palSetPad(GPIOE, GPIOE_LED9_BLUE); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED9_BLUE); + palSetPad(GPIOE, GPIOE_LED10_RED); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED10_RED); + palSetPad(GPIOE, GPIOE_LED8_ORANGE); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED8_ORANGE); + palSetPad(GPIOE, GPIOE_LED6_GREEN); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED6_GREEN); + palSetPad(GPIOE, GPIOE_LED4_BLUE); + chThdSleepMilliseconds(100); + palClearPad(GPIOE, GPIOE_LED4_BLUE); } } -- cgit v1.2.3