diff options
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/main.c b/demos/ARMCM3-STM32F103-GCC/main.c index 60e53abd3..99a1c085e 100644 --- a/demos/ARMCM3-STM32F103-GCC/main.c +++ b/demos/ARMCM3-STM32F103-GCC/main.c @@ -19,6 +19,8 @@ #include <ch.h>
+#include "board.h"
+
/*
* Red LEDs blinker thread, times are in milliseconds.
*/
@@ -36,6 +38,10 @@ static msg_t Thread1(void *arg) { */
int main(int argc, char **argv) {
+ GPIOC->BRR = GPIOC_LED;
+ while(1)
+ ;
+
/*
* The main() function becomes a thread here then the interrupts are
* enabled and ChibiOS/RT goes live.
|