Transferred to UART communication
This commit is contained in:
parent
5c682c4209
commit
10ee4fcbd9
9 changed files with 33832 additions and 19 deletions
|
@ -17,12 +17,15 @@
|
|||
/* SOFTWARE. */
|
||||
/*********************************************************************************/
|
||||
|
||||
#include <uart/uart.h>
|
||||
#include <vfs/vfs.h>
|
||||
#include <ui/ui.h>
|
||||
#include <print.h>
|
||||
|
||||
void axboot_init()
|
||||
{
|
||||
uart_init(115200);
|
||||
|
||||
if (!vfs_init("\\")) {
|
||||
debug("axboot_init(): Failed to mount boot drive! Halting...\n");
|
||||
// TODO: Halt
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS 0
|
||||
#include <nanoprintf.h>
|
||||
|
||||
#include <uart/uart.h>
|
||||
#include <print.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -46,10 +47,7 @@ void log(const char *fmt, ...)
|
|||
npf_vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
// TODO: Get rid of this
|
||||
#ifdef AXBOOT_UEFI
|
||||
printstr(buf);
|
||||
#endif
|
||||
uart_sendstr(buf);
|
||||
}
|
||||
|
||||
void debug(const char *fmt, ...)
|
||||
|
@ -61,9 +59,7 @@ void debug(const char *fmt, ...)
|
|||
npf_vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
#ifdef AXBOOT_UEFI
|
||||
printstr(buf);
|
||||
#endif
|
||||
uart_sendstr(buf);
|
||||
}
|
||||
|
||||
void snprintf(char *buf, size_t size, const char *fmt, ...)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*********************************************************************************/
|
||||
/* Module Name: gui.c */
|
||||
/* Module Name: ui.c */
|
||||
/* Project: AurixOS */
|
||||
/* */
|
||||
/* Copyright (c) 2024-2025 Jozef Nagy */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue