From 0e469eb0b6ca0ff94c8037659173ddb0f73c6ac9 Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 5 Sep 2023 13:59:08 +0200 Subject: [PATCH] NOTE about -DUSE_HAL_DRIVER oh boy... --- Makefile.conf | 3 ++- libs/cmsis/Makefile | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.conf b/Makefile.conf index c660ca6..afc7de7 100644 --- a/Makefile.conf +++ b/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 diff --git a/libs/cmsis/Makefile b/libs/cmsis/Makefile index 68da9e7..77ec7a2 100644 --- a/libs/cmsis/Makefile +++ b/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))