Increment packets-out counter.

This commit is contained in:
Martin Preuss
2025-07-06 20:01:35 +02:00
parent 0a45e38939
commit 1824e8ccdf
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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