RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
Default SoC Peripherals

Overview

Default Hardware mappings for the primary Interrupt Controller and Timer.

These macros provide the base addresses and configurations for the PLIC, CLINT, and UART peripherals on the EfxSapphireSoC platform.

  • The default UART is configured for 115200 baud, 8 data bits, no parity, and 1 stop bit.
  • The CLINT timer is configured based on the SYSTEM_CLINT_HZ macro.
  • These mappings are used by the BSP initialization and API functions to interact with the hardware peripherals.

Macros

#define BSP_PLIC   SYSTEM_PLIC_CTRL
 Primary PLIC controller base address.
#define BSP_PLIC_CPU_0   SYSTEM_PLIC_CPU_0_MEI
 Primary PLIC CPU 0 External Interrupt base address.
#define BSP_CLINT   SYSTEM_CLINT_CTRL
 Primary CLINT controller base address.
#define BSP_CLINT_HZ   SYSTEM_CLINT_HZ
 Primary CLINT controller clock frequency.
#define BSP_UART_BAUDRATE   115200
 Default UART baudrate.
#define BSP_UART_DATA_LEN   8
 Default UART data length (bits).
#define ENABLE_SEMIHOSTING_PRINT   0
 Enable printing with semihosting, Disabled by default.
#define BSP_UART_TERMINAL   SYSTEM_UART_0_IO_CTRL
 Physical UART base address for standard I/O mapping.

Variables

uart_instance_t uart0
 Primary UART instance for standard I/O mapping.

Macro Definition Documentation

◆ BSP_CLINT

#define BSP_CLINT   SYSTEM_CLINT_CTRL

#include <bsp.h>

Primary CLINT controller base address.

Definition at line 52 of file bsp.h.

◆ BSP_CLINT_HZ

#define BSP_CLINT_HZ   SYSTEM_CLINT_HZ

#include <bsp.h>

Primary CLINT controller clock frequency.

Definition at line 53 of file bsp.h.

◆ BSP_PLIC

#define BSP_PLIC   SYSTEM_PLIC_CTRL

#include <bsp.h>

Primary PLIC controller base address.

Definition at line 50 of file bsp.h.

◆ BSP_PLIC_CPU_0

#define BSP_PLIC_CPU_0   SYSTEM_PLIC_CPU_0_MEI

#include <bsp.h>

Primary PLIC CPU 0 External Interrupt base address.

Definition at line 51 of file bsp.h.

◆ BSP_UART_BAUDRATE

#define BSP_UART_BAUDRATE   115200

#include <bsp.h>

Default UART baudrate.

Definition at line 54 of file bsp.h.

◆ BSP_UART_DATA_LEN

#define BSP_UART_DATA_LEN   8

#include <bsp.h>

Default UART data length (bits).

Definition at line 55 of file bsp.h.

◆ BSP_UART_TERMINAL

#define BSP_UART_TERMINAL   SYSTEM_UART_0_IO_CTRL

#include <bsp.h>

Physical UART base address for standard I/O mapping.

Definition at line 61 of file bsp.h.

◆ ENABLE_SEMIHOSTING_PRINT

#define ENABLE_SEMIHOSTING_PRINT   0

#include <bsp.h>

Enable printing with semihosting, Disabled by default.

Definition at line 56 of file bsp.h.

Variable Documentation

◆ uart0

uart_instance_t uart0
extern

#include <bsp.h>

Primary UART instance for standard I/O mapping.

Definition at line 4 of file bsp.c.