Global Initialization of Z180 CSIO

Initialize CSIO speed at system startup.  A constant called Z180_CNTR_DEF has been created to hold the default value.  This value can be used by drivers to restore the default value after modification.
This commit is contained in:
Wayne Warthen
2020-12-26 11:58:31 -08:00
parent 5463ae21f8
commit a2c2ed0aef
3 changed files with 16 additions and 4 deletions

View File

@@ -543,6 +543,14 @@ INT_PIO1B .EQU 12 ; ZILOG PIO 1, CHANNEL B
#DEFINE VEC(INTX) INTX*2
#ENDIF
; SET DEFAULT CSIO SPEED (INTERNAL CLOCK, SLOW AS POSSIBLE)
; DIV 1280, 14KHZ @ 18MHZ CLK
#IF (CPUFAM == CPU_Z180)
Z180_CNTR_DEF .EQU $06 ; DEFAULT VALUE FOR Z180 CSIO CONFIG
#ENDIF
;
; HELPER MACROS
;