thermosphere: seriaLog => debugLog, add DEBUG macro

This commit is contained in:
TuxSH
2019-07-31 02:30:17 +02:00
parent abe524fd79
commit 6cbf5628d4
5 changed files with 28 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
#include "utils.h"
#include "core_ctx.h"
#include "log.h"
#include "debug_log.h"
#include "platform/uart.h"
#include "traps.h"
@@ -10,11 +10,11 @@ int main(void)
if (currentCoreCtx->coreId == 0) {
uartInit(115200);
serialLog("Hello from Thermosphere!\n");
DEBUG("Hello from Thermosphere!\n");
__builtin_trap();
}
else {
serialLog("Core %u booted\n", currentCoreCtx->coreId);
DEBUG("Core %u booted\n", currentCoreCtx->coreId);
}
return 0;