RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
uart.c File Reference
#include "uart/uart.h"

Go to the source code of this file.

Overview

UART driver implementation.

Implements the functions defined in uart.h for controlling UART input/output and interrupts on the EfxSapphireSoC platform.

Definition in file uart.c.

Functions

u32 uart_getWriteAvailability (uart_instance_t *inst)
 Get the availability of the UART buffer for writing data.
u32 uart_getReadOccupancy (uart_instance_t *inst)
 Get the occupancy of the UART buffer for reading data.
u32 uart_readStatus (uart_instance_t *inst)
 Write 32-bit UART data.
void uart_writeStatus (uart_instance_t *inst, u32 data)
 Writes a value to the UART status register.
u32 uart_read (uart_instance_t *inst)
 Read 32-bit UART data.
void uart_write (uart_instance_t *inst, char data)
 Writes a single character to the UART data register.
void uart_writeStr (uart_instance_t *inst, const char *str)
 Write string to UART.
void uart_writeHex (uart_instance_t *inst, int value)
 Write integer as decimal to UART.
void uart_applyConfig (uart_instance_t *inst)
 Apply stored UART configuration to hardware.
void uart_setTxInterruptEnable (uart_instance_t *inst, char Ena)
 Enable or Disable UART TX Empty Interrupt.
void uart_setRxInterruptEnable (uart_instance_t *inst, char Ena)
 Enable or Disable UART RX Not Empty Interrupt.