Commit 8c7c60d9 authored by Robert Sprowson's avatar Robert Sprowson

Debug UART typo & clarification

Top.s: HAL_UARTStartUp takes 0's based UART numbers, so the debug setup would go wrong (if HAL_UARTStartUp actually checked the value).
UART.s: Re-express the baud register default value so its origin is clear.
Retagged as BCM2835-0_75 as the (non-debug) version is binary identical.
parent b0ddf21a
......@@ -246,7 +246,7 @@ start
STR r4,PeriBase
[ HALDebug
mov a1, #1
mov a1, #0
bl HAL_UARTStartUp ; start early for debug use
bl HAL_DebugTXStrInline
DCB "HalStartup",10,0
......
......@@ -128,7 +128,7 @@ HAL_UARTStartUp
DataSyncBarrier a2 ; resync before writing peripheral
BaseAddr
StopUART a2
MOV a2, #&68
LDR a2, =((UARTCLK*64)/115200)/16
AND a3, a2,#&3F
STR a3, [a1,#UARTFBRD]
MOV a2, a2,LSR #6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment