com2w*: allow for higher frequencies than 8MHz

to be used with node S03, which is run at 20MHz.
This commit is contained in:
Martin Preuss
2025-08-18 18:04:30 +02:00
parent 9b1badb310
commit d9e7d4df81
7 changed files with 412 additions and 172 deletions

View File

@@ -34,7 +34,7 @@ com2wSetupLines:
.endif
; setup DATA line (as input, disable internal pull-up resistor)
rcall com2wDataSetHigh
rcall com2wnDataSetHigh
.ifdef COM_DATA_PUE
ldd r16, Y+COM2W_IFACE_OFFS_PINMASK_DATA
com r16
@@ -75,12 +75,12 @@ com2wClkSetHigh:
; ---------------------------------------------------------------------------
; @routine com2wClkSetLow
; @routine com2wnClkSetLow
;
; @param Y pointer to interface data in SRAM
; @clobbers none
com2wClkSetLow:
com2wnClkSetLow:
push r16
push r17
ldd r16, Y+COM2W_IFACE_OFFS_PINMASK_CLK
@@ -102,12 +102,12 @@ com2wClkSetLow:
; ---------------------------------------------------------------------------
; @routine com2wDataSetHigh
; @routine com2wnDataSetHigh
;
; @param Y pointer to interface data in SRAM
; @clobbers none
com2wDataSetHigh:
com2wnDataSetHigh:
push r16
push r17
ldd r16, Y+COM2W_IFACE_OFFS_PINMASK_DATA
@@ -129,12 +129,12 @@ com2wDataSetHigh:
; ---------------------------------------------------------------------------
; @routine com2wDataSetLow
; @routine com2wnDataSetLow
;
; @param Y pointer to interface data in SRAM
; @clobbers none
com2wDataSetLow:
com2wnDataSetLow:
push r16
push r17
ldd r16, Y+COM2W_IFACE_OFFS_PINMASK_DATA