From 465e750e3c5abc099ba08afea67b501ae8346af2 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 25 Aug 2025 10:22:50 +0200 Subject: [PATCH] avr: activate new led modules. --- avr/devices/all/includes.asm | 10 ++++++++++ avr/devices/all/main.asm | 10 ++++++++++ avr/devices/all/modules.asm | 23 ++++++++++++++++++++++- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/avr/devices/all/includes.asm b/avr/devices/all/includes.asm index 7755185..bbbf16e 100644 --- a/avr/devices/all/includes.asm +++ b/avr/devices/all/includes.asm @@ -161,6 +161,16 @@ #endif #endif +#ifdef MODULES_LED_SIGNAL +.include "modules/led_signal/main.asm" +#endif + + +#ifdef MODULES_LED_ACTIVITY +.include "modules/led_activity/main.asm" +#endif + + #ifdef MODULES_TWI_MASTER .include "modules/twimaster/main.asm" #endif diff --git a/avr/devices/all/main.asm b/avr/devices/all/main.asm index 5aaf331..b31182b 100644 --- a/avr/devices/all/main.asm +++ b/avr/devices/all/main.asm @@ -115,6 +115,16 @@ onSystemTimerTick: bigcall LedSimple_Every100ms #endif +#ifdef MODULES_LED_SIGNAL + bigcall LedSignal_Every100ms +#endif + + +#ifdef MODULES_LED_ACTIVITY + bigcall LedActivity_Every100ms +#endif + + #ifdef MODULES_UART_BITBANG bigcall UART_BitBang_Every100ms #endif diff --git a/avr/devices/all/modules.asm b/avr/devices/all/modules.asm index d9be262..79fda3a 100644 --- a/avr/devices/all/modules.asm +++ b/avr/devices/all/modules.asm @@ -51,7 +51,19 @@ initModules: #ifdef MODULES_LED_SIMPLE bigcall LedSimple_Init #endif - + + +#ifdef MODULES_LED_SIGNAL + bigcall LedSignal_Init +#endif + + + +#ifdef MODULES_LED_ACTIVITY + bigcall LedActivity_Init +#endif + + #ifdef MODULES_COM bigcall Com2_Init ; init COM module bigcall CPRO_Init ; init COM protocol module @@ -239,6 +251,15 @@ runModules: sbci r16, 0 #endif + +#ifdef MODULES_COM2W + push r16 + bigcall COM2W_Run + pop r16 + sbci r16, 0 +#endif + + #ifdef MODULES_COM2W0 push r16 bigcall COM2W0_Run