From 791afb80f8695bd3503c543c2cb48c44eb222932 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 25 Mar 2025 00:39:28 +0100 Subject: [PATCH] avr: added macros M_UART_HW_Uart_RxCharHalf/FullDuplexIsr --- avr/modules/uart_hw/lowlevel_uart0.asm | 5 + avr/modules/uart_hw/lowlevel_uart1.asm | 8 +- avr/modules/uart_hw/m_lowlevel_uart.asm | 118 ++++++++++++++++++++++-- 3 files changed, 121 insertions(+), 10 deletions(-) diff --git a/avr/modules/uart_hw/lowlevel_uart0.asm b/avr/modules/uart_hw/lowlevel_uart0.asm index 58073d3..511fb52 100644 --- a/avr/modules/uart_hw/lowlevel_uart0.asm +++ b/avr/modules/uart_hw/lowlevel_uart0.asm @@ -97,6 +97,10 @@ UART_HW_Uart0_Flush: ; @clobbers R16 (R17, R18, R24, R25, X) UART_HW_Uart0_RxCharIsr: + M_UART_HW_Uart_RxCharHalfDuplexIsr 0 + ret + +#if 0 ; check for errors lds r16, UCSR0A ; check for errors andi r16, (1<