diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM8L-STM8L152-DISCOVERY-STVD/cosmic/vectors.c | 2 | ||||
-rw-r--r-- | demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c | 10 |
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.
*/
|