avr: receiving flash messages basically works.

This commit is contained in:
Martin Preuss
2025-01-22 01:10:32 +01:00
parent 19af9daea7
commit 22a5402141
3 changed files with 16 additions and 6 deletions

View File

@@ -22,10 +22,10 @@
; @return CFLAG set if okay (packet received), cleared on error
; @return r16 code of received msg
; @param r16 command to wait for
; @param r20 time in seconds to wait for a message
; @clobbers: r16, r17, r20, X (r18, r19, r22)
ioWaitForGivenMsg:
ldi r20, 100 ; number of tries
ioWaitForGivenMsg_loop:
push r16
rcall ioRawWaitForValidMsg ; (r16, r17, r18, r19, r22, X)