]> mj.ucw.cz Git - home-hw.git/blobdiff - test-blink/test.c
Rainbow case: TODO
[home-hw.git] / test-blink / test.c
index 62c349d86981026465aa4c11e80cd6dbcceb6a43..714ea828c8fe3f1092aecb737717eb2b02967b58 100644 (file)
@@ -1,8 +1,8 @@
 #include "util.h"
-#include "modbus.h"
 
 #include <libopencm3/cm3/cortex.h>
 #include <libopencm3/cm3/nvic.h>
+#include <libopencm3/cm3/scb.h>
 #include <libopencm3/cm3/systick.h>
 #include <libopencm3/stm32/rcc.h>
 #include <libopencm3/stm32/gpio.h>
@@ -49,6 +49,8 @@ int main(void)
        clock_setup();
        gpio_setup();
        tick_setup();
+       // When using the serial boot loader, we need this:
+       // SCB_VTOR = 0x08000000;
        cm_enable_interrupts();
 
        for (;;) {