AVR: More work on COM module.

This commit is contained in:
Martin Preuss
2023-01-19 00:18:27 +01:00
parent 6468e76545
commit ff734192bb
2 changed files with 321 additions and 16 deletions

View File

@@ -178,10 +178,14 @@ initModules:
runModulesUntilIdle:
runModulesUntilIdle_Timer: ; repeat this block for every run function
runModulesUntilIdle_Timer: ; repeat this block for every module with run function
rcall Timer_Run ;
brcs runModulesUntilIdle_Timer ;
runModulesUntilIdle_Com:
rcall Com_Run
brcs runModulesUntilIdle_Com
ret
@@ -227,5 +231,24 @@ onEverySecond:
; ---------------------------------------------------------------------------
; onPacketReceived:
;
; Called after a packet was received via COM module. Add your routine calls here.
;
; The packet will be removed from buffer in any case after return from this call.
; IN:
; - R18: pos of packet in ringbuffer
; - Y : pointer to ringbuffer
; OUT:
; - CFLAG: set if handled, cleared otherwise
; USED: depending on called routines
onPacketReceived:
clc ; not handled
ret