Browse Source

NOTE about -DUSE_HAL_DRIVER

oh boy...
cmake_2_makefile
heck 2 years ago
parent
commit
0e469eb0b6
  1. 3
      Makefile.conf
  2. 1
      libs/cmsis/Makefile

3
Makefile.conf

@ -15,7 +15,8 @@ CFLAGS+=\
-DARM_MATH_ROUNDING \
-DDEBUG \
-DSTM32F407xx \
-DUSE_HAL_DRIVER \
# DONT define DUSE_HAL_DRIVER - all it does is to create a build dependency from cmsis to the hal crap
#-DUSE_HAL_DRIVER \
# Options
CFLAGS+= -fdiagnostics-color=always

1
libs/cmsis/Makefile

@ -4,7 +4,6 @@ TARGET=libcmsis.a
# Includes
CFLAGS+= -I.
CFLAGS+= -I../hal
C_SRC=$(wildcard *.c)
C_OBJ=$(subst .c,.o,$(C_SRC))

Loading…
Cancel
Save