add bpmp-fw cmd interface
This commit is contained in:
1 parent
39c612779b
commit
6b88b43cb9
7 files changed
+94
-17
No files matched your search
@@ -33,13 +33,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
bool g_uartLoggingEnabled = true;
|
||||
|
||||
void UartPutc(char c) {
|
||||
if (!g_uartLoggingEnabled) {
|
||||
return;
|
||||
}
|
||||
while (!(MMIO32(UartBBase + UartLsr) & UartLsrThre))
|
||||
;
|
||||
MMIO32(UartBBase + UartThr) = static_cast<u32>(static_cast<u8>(c));
|
||||
}
|
||||
|
||||
void UartFlush() {
|
||||
if (!g_uartLoggingEnabled) {
|
||||
return;
|
||||
}
|
||||
while (!(MMIO32(UartBBase + UartLsr) & UartLsrTmty))
|
||||
;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user