From 2a76e82923e0fc8e64b8ed966c38162b3c6b17a1 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 15 Mar 2026 20:21:57 +0100 Subject: [PATCH] avr: activate module ds3231 --- avr/devices/all/includes.asm | 11 +++++++++++ avr/devices/all/main.asm | 4 ++++ avr/devices/all/modules.asm | 17 +++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/avr/devices/all/includes.asm b/avr/devices/all/includes.asm index f1a7738..0ce6a29 100644 --- a/avr/devices/all/includes.asm +++ b/avr/devices/all/includes.asm @@ -227,6 +227,17 @@ #endif #endif +#ifdef MODULES_DS3231 +.include "modules/rtc/ds3231/main.asm" + #ifdef MODULES_NETWORK + .include "modules/network/msg/time-d.asm" + .include "modules/network/msg/time-r.asm" + .include "modules/network/msg/time-w.asm" + .include "modules/rtc/ds3231/recv.asm" + .include "modules/rtc/ds3231/send.asm" + #endif +#endif + #ifdef MODULES_MOTION .include "modules/motion/main2.asm" #endif diff --git a/avr/devices/all/main.asm b/avr/devices/all/main.asm index 876d337..2107733 100644 --- a/avr/devices/all/main.asm +++ b/avr/devices/all/main.asm @@ -240,6 +240,10 @@ sysOnEveryMinute: bigcall CCS811_OnEveryMinute #endif +#ifdef MODULES_DS3231 + bigcall Ds3231_OnEveryMinute +#endif + bigjmp onEveryMinute ; @end diff --git a/avr/devices/all/modules.asm b/avr/devices/all/modules.asm index 420fec7..30af11b 100644 --- a/avr/devices/all/modules.asm +++ b/avr/devices/all/modules.asm @@ -205,6 +205,9 @@ initModules: bigcall Brightness_Init #endif +#ifdef MODULES_DS3231 + bigcall Ds3231_Init +#endif ; done ret @@ -332,6 +335,20 @@ mainModulesOnPacketReceived: #endif +#ifdef MODULES_DS3231 + #ifdef MODULES_NETWORK + bigcall Ds3231_OnPacketReceived + #endif +#endif + + +#ifdef MODULES_DS3231 + #ifdef MODULES_NETWORK + bigcall Ds3231_OnPacketReceived + #endif +#endif + + ; add more here ret