avr: try calculating idle times.
This commit is contained in:
@@ -66,6 +66,8 @@ comDataBegin:
|
||||
comRepeatCount: .byte 1
|
||||
comReserved1: .byte 1
|
||||
|
||||
comInterrupts: .byte 2
|
||||
|
||||
comStatsPacketsIn: .byte 2
|
||||
comStatsPacketsOut: .byte 2
|
||||
|
||||
@@ -116,6 +118,11 @@ comIsrPcint0:
|
||||
push xl
|
||||
push yh
|
||||
push yl
|
||||
lds xl, comInterrupts
|
||||
lds xh, comInterrupts+1
|
||||
adiw xh:xl, 1
|
||||
sts comInterrupts, xl
|
||||
sts comInterrupts+1, xh
|
||||
rcall comReceivePacketHandleBuffer ; (R1, R16, R17, R18, R19, R20, R21, R22, X, Y
|
||||
pop yl
|
||||
pop yh
|
||||
|
||||
Reference in New Issue
Block a user