aboutsummaryrefslogtreecommitdiffstats
path: root/demos
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
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')
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c2
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c10
2 files changed, 4 insertions, 8 deletions
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c b/demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c
index d35e6a51e..ea2f03c9a 100644
--- a/demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c
+++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c
@@ -211,7 +211,7 @@ exception_vector_t const _vectab[] = {
{0x82, _unhandled_exception}, /* vector18 */
#endif
-#if defined(_TIM2_OVERFLOW_ISR) || defined(_USART2_TRANSMIT_ISR)
+#if defined(_TIM2_UPDATE_ISR) || defined(_USART2_TRANSMIT_ISR)
{0x82, vector19},
#else
{0x82, _unhandled_exception}, /* vector19 */
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.
*/