From 1824e8ccdfd5d04eb33982b54b5b8f3e4eccc955 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 6 Jul 2025 20:01:35 +0200 Subject: [PATCH] Increment packets-out counter. --- avr/modules/uart_hw2/comonuart0.asm | 2 ++ avr/modules/uart_hw2/comonuart1.asm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/avr/modules/uart_hw2/comonuart0.asm b/avr/modules/uart_hw2/comonuart0.asm index 10244b4..3534567 100644 --- a/avr/modules/uart_hw2/comonuart0.asm +++ b/avr/modules/uart_hw2/comonuart0.asm @@ -704,6 +704,8 @@ comOnUart0SendMsg_loopComplete: sbrs r16, TXC0 rjmp comOnUart0SendMsg_loopComplete rcall comOnUart0StopTx ; (R16) + ldi r16, NET_IFACE_OFFS_PACKETSOUT_LOW + rcall NET_Interface_IncCounter16 ; (R24, R25) rcall comOnUart0SetAttnInput ; release ATTN (none) rcall Utils_WaitFor10MicroSecs ; make sure ATTN is at least high for a short period (R22) sec diff --git a/avr/modules/uart_hw2/comonuart1.asm b/avr/modules/uart_hw2/comonuart1.asm index 5d4e985..27c51ec 100644 --- a/avr/modules/uart_hw2/comonuart1.asm +++ b/avr/modules/uart_hw2/comonuart1.asm @@ -704,6 +704,8 @@ comOnUart1SendMsg_loopComplete: sbrs r16, TXC1 rjmp comOnUart1SendMsg_loopComplete rcall comOnUart1StopTx ; (R16) + ldi r16, NET_IFACE_OFFS_PACKETSOUT_LOW + rcall NET_Interface_IncCounter16 ; (R24, R25) rcall comOnUart1SetAttnInput ; release ATTN (none) rcall Utils_WaitFor10MicroSecs ; make sure ATTN is at least high for a short period (R22) sec