Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Explicitly including stm32f0xx_conf.h in Libraries makefile fixes com…

…pile warings/errors
  • Loading branch information...
commit a9df1314e96010ed2163d23f8d8ce64cfd7a0d45 1 parent 318f60d
Mike Szczys authored
2  Libraries/Makefile
@@ -8,7 +8,7 @@ vpath %.c STM32F0xx_StdPeriph_Driver/src
8 8 CFLAGS = -g -O2 -Wall
9 9 CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m0 -march=armv6s-m
10 10 CFLAGS += -ffreestanding -nostdlib
11   -CFLAGS += -I../Device -ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include -ISTM32F0xx_StdPeriph_Driver/inc
  11 +CFLAGS += -includestm32f0xx_conf.h -ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include -ISTM32F0xx_StdPeriph_Driver/inc
12 12
13 13
14 14 SRCS = stm32f0xx_adc.c stm32f0xx_cec.c stm32f0xx_comp.c stm32f0xx_crc.c \
1  Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c
@@ -98,7 +98,6 @@
98 98
99 99 /* Includes ------------------------------------------------------------------*/
100 100 #include "stm32f0xx_dac.h"
101   -#include "stm32f0xx_rcc.h"
102 101
103 102 /** @addtogroup STM32F0xx_StdPeriph_Driver
104 103 * @{
0  Device/stm32f0xx_conf.h → Libraries/stm32f0xx_conf.h
File renamed without changes
2  Makefile
@@ -26,7 +26,7 @@ vpath %.a Libraries
26 26
27 27 ROOT=$(shell pwd)
28 28
29   -CFLAGS += -Iinc -IDevice -ILibraries/CMSIS/Device/ST/STM32F0xx/Include
  29 +CFLAGS += -Iinc -ILibraries -ILibraries/CMSIS/Device/ST/STM32F0xx/Include
30 30 CFLAGS += -ILibraries/CMSIS/Include -ILibraries/STM32F0xx_StdPeriph_Driver/inc
31 31
32 32 SRCS += Device/startup_stm32f0xx.s # add startup file to build

0 comments on commit a9df131

Please sign in to comment.
Something went wrong with that request. Please try again.