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