2025-02-22 22:53:15 +01:00
|
|
|
# Path to Z-Stack SDK
|
|
|
|
|
ZSTACK_DIR = ./include
|
|
|
|
|
|
|
|
|
|
# Include path for the Z-Stack SDK
|
|
|
|
|
# INCLUDE_DIRS = -I$(ZSTACK_DIR)/Components/hal/CC2530 \
|
|
|
|
|
# -I$(ZSTACK_DIR)/Components/zigbee
|
|
|
|
|
INCLUDE_DIRS = -I$(ZSTACK_DIR)
|
|
|
|
|
|
2025-02-22 11:15:35 +01:00
|
|
|
# Compiler settings
|
2025-02-23 10:12:09 +01:00
|
|
|
CC = sdcc # sdcc compiler
|
2025-02-23 20:53:04 +01:00
|
|
|
CFLAGS = -mmcs51 -DSDCC $(INCLUDE_DIRS) # add include paths to compiler flags
|
refactor ♻️: Implement comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components.
- The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions.
- Updated configuration file with new constants and definitions.
- The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- Main goal of the changes: Define a new header file with function prototypes and external variable declarations.
- Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic.
- Added header file for anemometer sensor with function prototypes.
- Initial implementation of BME280 sensor functionality.
- Added function prototype for the BME280 initialization and data reading functions.
- Initializes and configures a rain gauge sensor with GPIO interrupt setup.
- Added function prototypes to the rain gauge sensor header file.
- This commit adds a new C function to initialize and read data from a wind vane sensor.
- Updated header file with new function prototype definitions.
- This commit adds a new function `send_zigbee_data` to send various Zigbee data types.
- Added Zigbee communication header file with function prototype for sending data.
2025-02-22 10:44:49 +01:00
|
|
|
|
2025-02-23 20:53:04 +01:00
|
|
|
# Source files (all .c files in the directory)
|
2025-02-23 10:12:09 +01:00
|
|
|
SRC=$(wildcard *.c)
|
2025-02-23 20:53:04 +01:00
|
|
|
|
|
|
|
|
# Headers
|
2025-02-22 22:21:52 +01:00
|
|
|
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
|
refactor ♻️: Implement comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components.
- The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions.
- Updated configuration file with new constants and definitions.
- The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- Main goal of the changes: Define a new header file with function prototypes and external variable declarations.
- Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic.
- Added header file for anemometer sensor with function prototypes.
- Initial implementation of BME280 sensor functionality.
- Added function prototype for the BME280 initialization and data reading functions.
- Initializes and configures a rain gauge sensor with GPIO interrupt setup.
- Added function prototypes to the rain gauge sensor header file.
- This commit adds a new C function to initialize and read data from a wind vane sensor.
- Updated header file with new function prototype definitions.
- This commit adds a new function `send_zigbee_data` to send various Zigbee data types.
- Added Zigbee communication header file with function prototype for sending data.
2025-02-22 10:44:49 +01:00
|
|
|
|
2025-02-23 10:12:09 +01:00
|
|
|
# Object files (replace .c with .o)
|
2025-02-23 20:53:04 +01:00
|
|
|
OBJS = $(SRC:.c=.o)
|
refactor ♻️: Implement comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components.
- The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions.
- Updated configuration file with new constants and definitions.
- The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- Main goal of the changes: Define a new header file with function prototypes and external variable declarations.
- Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic.
- Added header file for anemometer sensor with function prototypes.
- Initial implementation of BME280 sensor functionality.
- Added function prototype for the BME280 initialization and data reading functions.
- Initializes and configures a rain gauge sensor with GPIO interrupt setup.
- Added function prototypes to the rain gauge sensor header file.
- This commit adds a new C function to initialize and read data from a wind vane sensor.
- Updated header file with new function prototype definitions.
- This commit adds a new function `send_zigbee_data` to send various Zigbee data types.
- Added Zigbee communication header file with function prototype for sending data.
2025-02-22 10:44:49 +01:00
|
|
|
|
2025-02-23 10:12:09 +01:00
|
|
|
# Output file
|
|
|
|
|
OUTPUT=output.ihx
|
2025-02-22 11:15:35 +01:00
|
|
|
|
2025-02-23 10:12:09 +01:00
|
|
|
# Default target: compile and generate the hex file
|
|
|
|
|
all: $(OUTPUT)
|
|
|
|
|
|
|
|
|
|
# Rule to build the output file
|
|
|
|
|
$(OUTPUT): $(OBJS)
|
|
|
|
|
$(CC) $(CFLAGS) $(OBJS) -o $(OUTPUT)
|
|
|
|
|
|
|
|
|
|
# Rule to build object files from source files
|
2025-02-22 11:15:35 +01:00
|
|
|
%.o: %.c $(HEADERS)
|
2025-02-22 11:31:07 +01:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
refactor ♻️: Implement comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components.
- The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions.
- Updated configuration file with new constants and definitions.
- The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- Main goal of the changes: Define a new header file with function prototypes and external variable declarations.
- Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic.
- Added header file for anemometer sensor with function prototypes.
- Initial implementation of BME280 sensor functionality.
- Added function prototype for the BME280 initialization and data reading functions.
- Initializes and configures a rain gauge sensor with GPIO interrupt setup.
- Added function prototypes to the rain gauge sensor header file.
- This commit adds a new C function to initialize and read data from a wind vane sensor.
- Updated header file with new function prototype definitions.
- This commit adds a new function `send_zigbee_data` to send various Zigbee data types.
- Added Zigbee communication header file with function prototype for sending data.
2025-02-22 10:44:49 +01:00
|
|
|
|
2025-02-23 10:12:09 +01:00
|
|
|
# Clean generated files
|
refactor ♻️: Implement comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- This commit updates the build process to use a custom toolchain and configuration, enabling compilation of multiple project components.
- The primary goal of this commit is to provide a detailed overview and documentation for a zigbee weather station project, including firmware information and sensor component descriptions.
- Updated configuration file with new constants and definitions.
- The MAIN GOAL of these changes is to implement a comprehensive sensor system for environmental monitoring, including temperature, humidity, pressure, wind speed, and direction.
- Main goal of the changes: Define a new header file with function prototypes and external variable declarations.
- Added new functionality to initialize and read data from an anemometer sensor, introducing its necessary setup and calculation logic.
- Added header file for anemometer sensor with function prototypes.
- Initial implementation of BME280 sensor functionality.
- Added function prototype for the BME280 initialization and data reading functions.
- Initializes and configures a rain gauge sensor with GPIO interrupt setup.
- Added function prototypes to the rain gauge sensor header file.
- This commit adds a new C function to initialize and read data from a wind vane sensor.
- Updated header file with new function prototype definitions.
- This commit adds a new function `send_zigbee_data` to send various Zigbee data types.
- Added Zigbee communication header file with function prototype for sending data.
2025-02-22 10:44:49 +01:00
|
|
|
clean:
|
2025-02-23 10:12:09 +01:00
|
|
|
rm -f $(OUTPUT) $(OBJS) *.asm *.lst *.sym
|