avr: more work on t03 and hw uart modules.

Too complicated, will start new...
This commit is contained in:
Martin Preuss
2025-02-10 23:36:52 +01:00
parent 358ceaaa7d
commit 0790ac0dea
6 changed files with 165 additions and 347 deletions

View File

@@ -87,13 +87,14 @@ uartHwWriteUptoNumBytes:
ldd xl, Y+UART_HW_IFACE_OFFS_WRITEMSG_PTR
ldd xh, Y+UART_HW_IFACE_OFFS_WRITEMSG_PTR+1
uartHwWriteUptoNumBytes_loop:
ld r16, X+
ld r16, X
push xl
push xh
rcall UART_HW_InterfaceWriteToWriteBuffer ; (R17, R18, X)
pop xh
pop xl
brcc uartHwWriteUptoNumBytes_done
adiw xh:xl, 1
inc r21
dec r20
brne uartHwWriteUptoNumBytes_loop