more bpmpfw shenanigans
This commit is contained in:
1 parent
7660650129
commit
b20d20edff
54 files changed
+1275
-30
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "regs.hpp"
|
||||
|
||||
namespace {
|
||||
|
||||
int UartStreamPutc(int c, FILE *) {
|
||||
UartPutc(static_cast<char>(c));
|
||||
return c;
|
||||
}
|
||||
|
||||
FILE g_uartStdout = { nullptr, UartStreamPutc, nullptr, nullptr, nullptr, -1 };
|
||||
|
||||
} // namespace
|
||||
|
||||
void InitializeLibc() {
|
||||
stdout = &g_uartStdout;
|
||||
}
|
||||
Reference in new issue
Block a user