summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/Makefile2
-rw-r--r--boot/usbdfu.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/boot/Makefile b/boot/Makefile
index 86d4d2c..55cbe4e 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -28,5 +28,5 @@ OBJS = ${CSRCS:%.c=%.o}
include ../Makefile.include
-CFLAGS += -I..
+CFLAGS += -I../include
diff --git a/boot/usbdfu.c b/boot/usbdfu.c
index 33f4c22..400fc7c 100644
--- a/boot/usbdfu.c
+++ b/boot/usbdfu.c
@@ -24,7 +24,7 @@
#include <libopencm3/cm3/scb.h>
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/dfu.h>
-
+#include <stm32f101cb_clock.h>
#define APP_ADDRESS 0x08002000
@@ -270,7 +270,7 @@ int main(void)
dfu_flag=0;
- rcc_clock_setup_in_hsi_out_48mhz();
+ rcc_clock_setup_in_hse_8mhz_out_48mhz();
rcc_periph_clock_enable(RCC_GPIOC);