From 349c11d64157fd191f1c509fd75955d07e13ca9c Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 24 May 2025 17:45:33 +0200 Subject: [PATCH] reset uart_hw code to what works on t03. --- avr/modules/uart_hw/comonuart0.asm | 95 +++------------ avr/modules/uart_hw/lowlevel.asm | 1 - avr/modules/uart_hw/m_lowlevel_uart.asm | 146 +++++------------------- avr/modules/uart_hw/ttyonuart1.asm | 2 +- 4 files changed, 42 insertions(+), 202 deletions(-) diff --git a/avr/modules/uart_hw/comonuart0.asm b/avr/modules/uart_hw/comonuart0.asm index f4305da..60ebe7b 100644 --- a/avr/modules/uart_hw/comonuart0.asm +++ b/avr/modules/uart_hw/comonuart0.asm @@ -10,7 +10,7 @@ .equ COMONUART0_IFACENUM = 1 .equ COMONUART0_READ_TIMEOUT = 3 -.equ COMONUART0_MSG_INTERVAL = 0 +.equ COMONUART0_MSG_INTERVAL = 1 @@ -30,32 +30,17 @@ comOnUart0_iface: .byte UART_HW_IFACE_SIZE ComOnUart0_Init: ldi yl, LOW(comOnUart0_iface) ldi yh, HIGH(comOnUart0_iface) - rcall comOnUart0SetAttnInput ; (none) + rcall comOnUart0SetAttnInput ; (none) rcall UART_HW_Interface_Init ; (R16, R17, X) - rcall comOnUart0Init ; (R16, R17, X) + rcall comOnUart0Init ; (R16, R17, X) ldi r16, COMONUART0_IFACENUM std Y+NET_IFACE_OFFS_IFACENUM, r16 -.if COM_IRQ_BIT_ATTN == INT0 - M_IO_READ r16, MCUCR - cbr r16, (1<