chore 📦: Improve build process for Sdcc compiler

- Improved build process for Sdcc compiler.
- This commit changes the compiler flags in the Makefile to correctly specify the microcontroller family for the SDCC compiler.
This commit is contained in:
2025-02-23 12:02:59 +01:00
parent b6378ff0de
commit 04aa49e13b
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ INCLUDE_DIRS = -I$(ZSTACK_DIR)
# Compiler settings
CC = sdcc # sdcc compiler
CFLAGS = -mmc51 $(INCLUDE_DIRS) # add include paths to compiler flags
CFLAGS = -mcs51 $(INCLUDE_DIRS) # add include paths to compiler flags
SRC=$(wildcard *.c)
HEADERS = main.h zigbee_comm.h sensors/bme280.h sensors/wind_vane.h sensors/rain_gauge.h sensors/anemometer.h config.h include/hal_types.h include/hal_defs.h include/hal_timer.h include/ZComDef.h include/OSAL.h include/i2c.h