avr: more work on com2wn module.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user