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

@@ -35,7 +35,7 @@ UART_HW_Interface_Init:
; ---------------------------------------------------------------------------
; @routine UART_HW_Interface_SetReadBuffer @global
;
; @param Y pointer to interface data in SRAM (see @ref UART_HW_IFACE_OFFS_STATE)
; @param Y pointer to interface data in SRAM
; @param r16 read buffer number
; @param X pointer to read buffer
; @clobbers R17
@@ -48,6 +48,7 @@ UART_HW_Interface_SetReadBuffer:
sbiw xh:xl, 1
clr r17
std Y+UART_HW_IFACE_OFFS_READBUFUSED, r17
ldi r17, NET_BUFFERS_SIZE-1
std Y+UART_HW_IFACE_OFFS_READBUFLEFT, r17
ret
; @end
@@ -57,7 +58,7 @@ UART_HW_Interface_SetReadBuffer:
; ---------------------------------------------------------------------------
; @routine UART_HW_Interface_SetWriteBuffer @global
;
; @param Y pointer to interface data in SRAM (see @ref UART_HW_IFACE_OFFS_STATE)
; @param Y pointer to interface data in SRAM
; @param r16 write buffer number
; @param X pointer to write buffer
; @clobbers r17