aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM8L-STM8L152-DISCOVERY-STVD/demo
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-13 09:41:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-13 09:41:55 +0000
commit11c89928eac9e2a9916940b8f634f3d96b60f17e (patch)
tree3af58998e293808620f1253aeaca169ce50d5347 /demos/STM8L-STM8L152-DISCOVERY-STVD/demo
parentbe60d348aa1f67e1c9a4667aa996318c1a43067f (diff)
downloadChibiOS-11c89928eac9e2a9916940b8f634f3d96b60f17e.tar.gz
ChibiOS-11c89928eac9e2a9916940b8f634f3d96b60f17e.tar.bz2
ChibiOS-11c89928eac9e2a9916940b8f634f3d96b60f17e.zip
STM8L Demo and PAL driver working now.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2357 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM8L-STM8L152-DISCOVERY-STVD/demo')
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
index d0d7b4060..6e61e0521 100644
--- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
+++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
@@ -29,14 +29,14 @@ static msg_t Thread1(void *arg) {
(void)arg;
while (TRUE) {
- palClearPad(GPIOC, PC_LED4);
- chThdSleepMilliseconds(500);
palSetPad(GPIOC, PC_LED4);
chThdSleepMilliseconds(500);
- palClearPad(GPIOE, PE_LED3);
+ palClearPad(GPIOC, PC_LED4);
chThdSleepMilliseconds(500);
palSetPad(GPIOE, PE_LED3);
chThdSleepMilliseconds(500);
+ palClearPad(GPIOE, PE_LED3);
+ chThdSleepMilliseconds(500);
}
return 0;
}
@@ -51,10 +51,6 @@ void main(void) {
*/
hwinit();
- palClearPad(GPIOC, PC_LED4);
- palSetPad(GPIOE, PE_LED3);
- while(1);
-
/*
* OS initialization.
*/