Explicitly including stm32f0xx_conf.h in Libraries makefile fixes compile warings/errors
This commit is contained in:
parent
318f60da62
commit
a9df1314e9
|
@ -8,7 +8,7 @@ vpath %.c STM32F0xx_StdPeriph_Driver/src
|
||||||
CFLAGS = -g -O2 -Wall
|
CFLAGS = -g -O2 -Wall
|
||||||
CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m0 -march=armv6s-m
|
CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m0 -march=armv6s-m
|
||||||
CFLAGS += -ffreestanding -nostdlib
|
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 \
|
SRCS = stm32f0xx_adc.c stm32f0xx_cec.c stm32f0xx_comp.c stm32f0xx_crc.c \
|
||||||
|
|
|
@ -98,7 +98,6 @@
|
||||||
|
|
||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "stm32f0xx_dac.h"
|
#include "stm32f0xx_dac.h"
|
||||||
#include "stm32f0xx_rcc.h"
|
|
||||||
|
|
||||||
/** @addtogroup STM32F0xx_StdPeriph_Driver
|
/** @addtogroup STM32F0xx_StdPeriph_Driver
|
||||||
* @{
|
* @{
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ vpath %.a Libraries
|
||||||
|
|
||||||
ROOT=$(shell pwd)
|
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
|
CFLAGS += -ILibraries/CMSIS/Include -ILibraries/STM32F0xx_StdPeriph_Driver/inc
|
||||||
|
|
||||||
SRCS += Device/startup_stm32f0xx.s # add startup file to build
|
SRCS += Device/startup_stm32f0xx.s # add startup file to build
|
||||||
|
|
Loading…
Reference in New Issue