Permalink
Browse files

Explicitly including stm32f0xx_conf.h in Libraries makefile fixes com…

…pile warings/errors
1 parent 318f60d commit a9df1314e96010ed2163d23f8d8ce64cfd7a0d45 Mike Szczys committed Jun 16, 2012
View
2 Libraries/Makefile
@@ -8,7 +8,7 @@ vpath %.c STM32F0xx_StdPeriph_Driver/src
CFLAGS = -g -O2 -Wall
CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m0 -march=armv6s-m
CFLAGS += -ffreestanding -nostdlib
-CFLAGS += -I../Device -ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include -ISTM32F0xx_StdPeriph_Driver/inc
+CFLAGS += -includestm32f0xx_conf.h -ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include -ISTM32F0xx_StdPeriph_Driver/inc
SRCS = stm32f0xx_adc.c stm32f0xx_cec.c stm32f0xx_comp.c stm32f0xx_crc.c \
View
1 Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c
@@ -98,7 +98,6 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f0xx_dac.h"
-#include "stm32f0xx_rcc.h"
/** @addtogroup STM32F0xx_StdPeriph_Driver
* @{
View
0 Device/stm32f0xx_conf.h → Libraries/stm32f0xx_conf.h
File renamed without changes.
View
2 Makefile
@@ -26,7 +26,7 @@ vpath %.a Libraries
ROOT=$(shell pwd)
-CFLAGS += -Iinc -IDevice -ILibraries/CMSIS/Device/ST/STM32F0xx/Include
+CFLAGS += -Iinc -ILibraries -ILibraries/CMSIS/Device/ST/STM32F0xx/Include
CFLAGS += -ILibraries/CMSIS/Include -ILibraries/STM32F0xx_StdPeriph_Driver/inc
SRCS += Device/startup_stm32f0xx.s # add startup file to build

0 comments on commit a9df131

Please sign in to comment.