Structs and Enums used by the driver.
- Note
- This is an example show how to instantiate UART with uart_instance_t and uart_hwreg_t.
#define UART_BASE (uart_hwreg_t*)SYSTEM_UART_0_IO_CTRL
uart0.hwreg = UART0_BASE;
}
void bsp_init()
Initialize Board Support Package Peripherals.
#define BSP_UART_DATA_LEN
Default UART data length (bits).
uart_instance_t uart0
Primary UART instance for standard I/O mapping.
#define BSP_UART_BAUDRATE
Default UART baudrate.
#define BSP_CLINT_HZ
Primary CLINT controller clock frequency.
@ BITS_8
8-bit data length */
void uart_applyConfig(uart_instance_t *inst)
Apply stored UART configuration to hardware.
UART instance. Holds the software registers and hardware pointer.