avr: enable module com2w2.

This commit is contained in:
Martin Preuss
2026-07-05 20:08:02 +02:00
parent d4428128cb
commit d51112e291
4 changed files with 31 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ modulesOnEvery100ms:
bigcall COM2W_Every100ms bigcall COM2W_Every100ms
#endif #endif
#ifdef MODULES_COM2W2
bigcall COM2W2_Every100ms
#endif
#ifdef MODULES_COM2W0 #ifdef MODULES_COM2W0
bigcall COM2W0_Periodically bigcall COM2W0_Periodically
#endif #endif

View File

@@ -100,6 +100,22 @@ MODULE_END_COM2W:
.equ MODULE_SIZE_COM2W = MODULE_END_COM2W-MODULE_BEGIN_COM2W .equ MODULE_SIZE_COM2W = MODULE_END_COM2W-MODULE_BEGIN_COM2W
#endif #endif
#ifdef MODULES_COM2W2
MODULE_BEGIN_COM2W2:
.include "modules/com2w2/defs.asm"
.include "modules/com2w2/macros.asm"
.include "modules/com2w2/io.asm"
.include "modules/com2w2/byteread.asm"
.include "modules/com2w2/bytewrite.asm"
.include "modules/com2w2/msgread.asm"
.include "modules/com2w2/msgwrite.asm"
.include "modules/com2w2/main.asm"
.include "modules/com2w2/data.asm"
MODULE_END_COM2W2:
.equ MODULE_SIZE_COM2W2 = MODULE_END_COM2W2-MODULE_BEGIN_COM2W2
#endif
#ifdef MODULES_COM2W0 #ifdef MODULES_COM2W0
.include "modules/com2w/defs.asm" .include "modules/com2w/defs.asm"
.include "modules/com2w/common.asm" .include "modules/com2w/common.asm"

View File

@@ -101,6 +101,10 @@ modulesInit:
bigcall COM2W_Init bigcall COM2W_Init
#endif #endif
#ifdef MODULES_COM2W2
bigcall COM2W2_Init
#endif
#ifdef MODULES_COM2W0 #ifdef MODULES_COM2W0
bigcall COM2W0_Init bigcall COM2W0_Init
#endif #endif

View File

@@ -76,6 +76,13 @@ modulesRun:
sbci r16, 0 sbci r16, 0
#endif #endif
#ifdef MODULES_COM2W2
push r16
bigcall COM2W2_Run
pop r16
sbci r16, 0
#endif
#ifdef MODULES_COM2W0 #ifdef MODULES_COM2W0
push r16 push r16
bigcall COM2W0_Run bigcall COM2W0_Run