fix(serial): INITUART now writes LCR and RESET calls INITUART with params
This commit is contained in:
@@ -32,6 +32,8 @@ NEXT@
|
||||
lds #STACK_TOP ; Set S to top of newly cleared stack
|
||||
|
||||
BOOTSCR
|
||||
lda #13 ; 9600 baud
|
||||
ldb #%11 ; 8N1
|
||||
jsr INITUART ; Initialize serial console
|
||||
ldx #VERMSG ; Print version information
|
||||
jsr POUTZSTR
|
||||
|
@@ -26,6 +26,8 @@ INITUART
|
||||
ldd a,x ; Get divisor into D
|
||||
sta UART_DLM ; Write divisor MSB
|
||||
stb UART_DLL ; Write divisor LSB
|
||||
puls b ; Restore B
|
||||
stb UART_LCR ; Write LCR
|
||||
lda UARTF_FCR_FE|UARTF_FCR_RFR|UARTF_FCR_XFR ; FIFO disable and clear
|
||||
sta UART_FCR
|
||||
lda #0
|
||||
|
Reference in New Issue
Block a user