modified: Makefile

new file:   include/OSAL_Memory.c
	new file:   include/OSAL_Memory.h
	new file:   include/OSAL_Timers.c
	new file:   include/OSAL_Timers.h
	new file:   include/comdef.h
	new file:   include/saddr.c
	new file:   include/saddr.h
	modified:   main.c
This commit is contained in:
2025-02-23 20:53:04 +01:00
parent 9e41b69d33
commit e322b295f2
9 changed files with 2117 additions and 3 deletions

View File

@@ -8,13 +8,16 @@ INCLUDE_DIRS = -I$(ZSTACK_DIR)
# Compiler settings
CC = sdcc # sdcc compiler
CFLAGS = -mmcs51 $(INCLUDE_DIRS) # add include paths to compiler flags
CFLAGS = -mmcs51 -DSDCC $(INCLUDE_DIRS) # add include paths to compiler flags
# Source files (all .c files in the directory)
SRC=$(wildcard *.c)
# Headers
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
# Object files (replace .c with .o)
OBJS = $(SRCS:.c=.o)
OBJS = $(SRC:.c=.o)
# Output file
OUTPUT=output.ihx