AVR: More work on COM module.
This commit is contained in:
25
avr/main.asm
25
avr/main.asm
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user