RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
bsp.c
Go to the documentation of this file.
1#include "bsp.h"
2#include "syscall.h"
3
5
6void bsp_init() {
7 // Init uart 0
8 uart0.hwreg = UART0_BASE;
9 uart0.dataLength = BITS_8;
10 uart0.parity = NONE;
11 uart0.stop = ONE;
14}
15
Board Support Package API definitions.
void bsp_init()
Initialize Board Support Package Peripherals.
Definition bsp.c:6
#define BSP_UART_DATA_LEN
Default UART data length (bits).
Definition bsp.h:55
uart_instance_t uart0
Primary UART instance for standard I/O mapping.
Definition bsp.c:4
#define BSP_UART_BAUDRATE
Default UART baudrate.
Definition bsp.h:54
#define BSP_CLINT_HZ
Primary CLINT controller clock frequency.
Definition bsp.h:53
@ ONE
One Stop Bit *‍/.
Definition uart.h:90
@ BITS_8
8-bit data length *‍/
Definition uart.h:78
@ NONE
No Parity *‍/.
Definition uart.h:83
void uart_applyConfig(uart_instance_t *inst)
Apply stored UART configuration to hardware.
Definition uart.c:68
UART instance. Holds the software registers and hardware pointer.
Definition uart.h:140