avr: t03 can now send and receive messages!

will change other nodes from com2 interface to new network interface.
This commit is contained in:
Martin Preuss
2025-02-13 18:56:13 +01:00
parent bf61be029e
commit a7990db831
13 changed files with 537 additions and 80 deletions

View File

@@ -97,7 +97,7 @@ NET_Buffer_ReleaseByNum_end:
; @return CFLAG set if okay, cleared on error
; @return X points to start of buffer with the given num
; @param r16 buffer num (0-max)
; @clobbers r16
; @clobbers r17
NET_Buffer_Locate:
cpi r16, NET_BUFFERS_NUM
@@ -110,10 +110,10 @@ NET_Buffer_Locate:
ror xl
lsr xh ; *32
ror xl
ldi r16, LOW(netBuffers)
add xl, r16
ldi r17, LOW(netBuffers)
add xl, r17
ldi r16, HIGH(netBuffers)
adc xh, r16
adc xh, r17
sec
NET_Buffer_Locate_end:
ret