avr: more work on com2wn module.

This commit is contained in:
Martin Preuss
2025-09-01 23:25:02 +02:00
parent 81669a5442
commit b95a4fa872
6 changed files with 38 additions and 83 deletions

View File

@@ -51,6 +51,7 @@ COM2WN_Init:
clr r16
sts com2wnIoFlags, r16
sts com2wnIoDisabledClockMask, r16
ldi yl, LOW(com2wnIoRingBuffer)
ldi yh, HIGH(com2wnIoRingBuffer)
@@ -85,6 +86,8 @@ COM2WN_Init:
mCOM2WN_INIT 7
.endif
rcall com2wnSetupIrq
ret
; @end
@@ -100,8 +103,7 @@ com2wnInit:
rcall com2wSetMode ; (R17)
rcall com2wSetupLines
rcall com2wnSetupIrq
rcall com2wnEnableClkIrq
ret
; @end