avr: t03 can now send and receive messages!
will change other nodes from com2 interface to new network interface.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user