MOS Source Code
Loading...
Searching...
No Matches
uart_driver.c File Reference
+ Include dependency graph for uart_driver.c:

Go to the source code of this file.

Functions

static u8 riscv64_serial_read_register (serial_device_t *dev, serial_register_t reg)
 
static void riscv64_serial_write_register (serial_device_t *dev, serial_register_t reg, u8 value)
 
static u8 riscv64_serial_read_data (serial_device_t *dev)
 
static void riscv64_serial_write_data (serial_device_t *dev, u8 data)
 

Variables

const serial_driver_t riscv64_uart_driver
 

Function Documentation

◆ riscv64_serial_read_register()

static u8 riscv64_serial_read_register ( serial_device_t * dev,
serial_register_t reg )
static

Definition at line 9 of file uart_driver.c.

◆ riscv64_serial_write_register()

static void riscv64_serial_write_register ( serial_device_t * dev,
serial_register_t reg,
u8 value )
static

Definition at line 15 of file uart_driver.c.

◆ riscv64_serial_read_data()

static u8 riscv64_serial_read_data ( serial_device_t * dev)
static

Definition at line 21 of file uart_driver.c.

◆ riscv64_serial_write_data()

static void riscv64_serial_write_data ( serial_device_t * dev,
u8 data )
static

Definition at line 27 of file uart_driver.c.

Variable Documentation

◆ riscv64_uart_driver

const serial_driver_t riscv64_uart_driver
Initial value:
= {
.read_register = riscv64_serial_read_register,
.write_register = riscv64_serial_write_register,
}
static void riscv64_serial_write_data(serial_device_t *dev, u8 data)
Definition uart_driver.c:27
static void riscv64_serial_write_register(serial_device_t *dev, serial_register_t reg, u8 value)
Definition uart_driver.c:15
static u8 riscv64_serial_read_register(serial_device_t *dev, serial_register_t reg)
Definition uart_driver.c:9
static u8 riscv64_serial_read_data(serial_device_t *dev)
Definition uart_driver.c:21

Definition at line 33 of file uart_driver.c.