MOS Source Code
Loading...
Searching...
No Matches
serial_console.h File Reference
#include "mos/device/console.h"
#include "mos/device/serial.h"
#include <ansi_colors.h>
#include <stddef.h>
+ Include dependency graph for serial_console.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  serial_console_t
 

Functions

 MOS_STATIC_ASSERT (offsetof(serial_console_t, con)==0, "console must be the first field in serial_console_t")
 
bool serial_console_setup (console_t *console)
 
bool serial_console_irq_handler (u32 irq, void *data)
 

Function Documentation

◆ MOS_STATIC_ASSERT()

MOS_STATIC_ASSERT ( offsetof(serial_console_t, con) = =0,
"console must be the first field in serial_console_t"  )

◆ serial_console_setup()

bool serial_console_setup ( console_t * console)

Definition at line 44 of file serial_console.c.

Referenced by riscv64_uart_setup().

+ Here is the call graph for this function:

◆ serial_console_irq_handler()

bool serial_console_irq_handler ( u32 irq,
void * data )

Definition at line 67 of file serial_console.c.

Referenced by platform_startup_late().

+ Here is the call graph for this function: