35#define XIP_MEM_BASE_ADDRESS (0xE0000000U)
37#define IO_BASE_ADDRESS (0XFFE00000U)
45#define NEORV32_BOOTROM_BASE (0xFFE00000U)
55#define NEORV32_TWD_BASE (0xFFEA0000U)
56#define NEORV32_CFS_BASE (0xFFEB0000U)
57#define NEORV32_SLINK_BASE (0xFFEC0000U)
58#define NEORV32_DMA_BASE (0xFFED0000U)
59#define NEORV32_CRC_BASE (0xFFEE0000U)
60#define NEORV32_XIP_BASE (0xFFEF0000U)
61#define NEORV32_PWM_BASE (0xFFF00000U)
62#define NEORV32_GPTMR_BASE (0xFFF10000U)
63#define NEORV32_ONEWIRE_BASE (0xFFF20000U)
64#define NEORV32_XIRQ_BASE (0xFFF30000U)
65#define NEORV32_MTIME_BASE (0xFFF40000U)
66#define NEORV32_UART0_BASE (0xFFF50000U)
67#define NEORV32_UART1_BASE (0xFFF60000U)
68#define NEORV32_SDI_BASE (0xFFF70000U)
69#define NEORV32_SPI_BASE (0xFFF80000U)
70#define NEORV32_TWI_BASE (0xFFF90000U)
71#define NEORV32_TRNG_BASE (0xFFFA0000U)
72#define NEORV32_WDT_BASE (0xFFFB0000U)
73#define NEORV32_GPIO_BASE (0xFFFC0000U)
74#define NEORV32_NEOLED_BASE (0xFFFD0000U)
75#define NEORV32_SYSINFO_BASE (0xFFFE0000U)
76#define NEORV32_DM_BASE (0xFFFF0000U)
86#define TWD_FIRQ_ENABLE CSR_MIE_FIRQ0E
87#define TWD_FIRQ_PENDING CSR_MIP_FIRQ0P
88#define TWD_RTE_ID RTE_TRAP_FIRQ_0
89#define TWD_TRAP_CODE TRAP_CODE_FIRQ_0
93#define CFS_FIRQ_ENABLE CSR_MIE_FIRQ1E
94#define CFS_FIRQ_PENDING CSR_MIP_FIRQ1P
95#define CFS_RTE_ID RTE_TRAP_FIRQ_1
96#define CFS_TRAP_CODE TRAP_CODE_FIRQ_1
100#define UART0_RX_FIRQ_ENABLE CSR_MIE_FIRQ2E
101#define UART0_RX_FIRQ_PENDING CSR_MIP_FIRQ2P
102#define UART0_RX_RTE_ID RTE_TRAP_FIRQ_2
103#define UART0_RX_TRAP_CODE TRAP_CODE_FIRQ_2
104#define UART0_TX_FIRQ_ENABLE CSR_MIE_FIRQ3E
105#define UART0_TX_FIRQ_PENDING CSR_MIP_FIRQ3P
106#define UART0_TX_RTE_ID RTE_TRAP_FIRQ_3
107#define UART0_TX_TRAP_CODE TRAP_CODE_FIRQ_3
111#define UART1_RX_FIRQ_ENABLE CSR_MIE_FIRQ4E
112#define UART1_RX_FIRQ_PENDING CSR_MIP_FIRQ4P
113#define UART1_RX_RTE_ID RTE_TRAP_FIRQ_4
114#define UART1_RX_TRAP_CODE TRAP_CODE_FIRQ_4
115#define UART1_TX_FIRQ_ENABLE CSR_MIE_FIRQ5E
116#define UART1_TX_FIRQ_PENDING CSR_MIP_FIRQ5P
117#define UART1_TX_RTE_ID RTE_TRAP_FIRQ_5
118#define UART1_TX_TRAP_CODE TRAP_CODE_FIRQ_5
122#define SPI_FIRQ_ENABLE CSR_MIE_FIRQ6E
123#define SPI_FIRQ_PENDING CSR_MIP_FIRQ6P
124#define SPI_RTE_ID RTE_TRAP_FIRQ_6
125#define SPI_TRAP_CODE TRAP_CODE_FIRQ_6
129#define TWI_FIRQ_ENABLE CSR_MIE_FIRQ7E
130#define TWI_FIRQ_PENDING CSR_MIP_FIRQ7P
131#define TWI_RTE_ID RTE_TRAP_FIRQ_7
132#define TWI_TRAP_CODE TRAP_CODE_FIRQ_7
136#define XIRQ_FIRQ_ENABLE CSR_MIE_FIRQ8E
137#define XIRQ_FIRQ_PENDING CSR_MIP_FIRQ8P
138#define XIRQ_RTE_ID RTE_TRAP_FIRQ_8
139#define XIRQ_TRAP_CODE TRAP_CODE_FIRQ_8
143#define NEOLED_FIRQ_ENABLE CSR_MIE_FIRQ9E
144#define NEOLED_FIRQ_PENDING CSR_MIP_FIRQ9P
145#define NEOLED_RTE_ID RTE_TRAP_FIRQ_9
146#define NEOLED_TRAP_CODE TRAP_CODE_FIRQ_9
150#define DMA_FIRQ_ENABLE CSR_MIE_FIRQ10E
151#define DMA_FIRQ_PENDING CSR_MIP_FIRQ10P
152#define DMA_RTE_ID RTE_TRAP_FIRQ_10
153#define DMA_TRAP_CODE TRAP_CODE_FIRQ_10
157#define SDI_FIRQ_ENABLE CSR_MIE_FIRQ11E
158#define SDI_FIRQ_PENDING CSR_MIP_FIRQ11P
159#define SDI_RTE_ID RTE_TRAP_FIRQ_11
160#define SDI_TRAP_CODE TRAP_CODE_FIRQ_11
164#define GPTMR_FIRQ_ENABLE CSR_MIE_FIRQ12E
165#define GPTMR_FIRQ_PENDING CSR_MIP_FIRQ12P
166#define GPTMR_RTE_ID RTE_TRAP_FIRQ_12
167#define GPTMR_TRAP_CODE TRAP_CODE_FIRQ_12
171#define ONEWIRE_FIRQ_ENABLE CSR_MIE_FIRQ13E
172#define ONEWIRE_FIRQ_PENDING CSR_MIP_FIRQ13P
173#define ONEWIRE_RTE_ID RTE_TRAP_FIRQ_13
174#define ONEWIRE_TRAP_CODE TRAP_CODE_FIRQ_13
178#define SLINK_RX_FIRQ_ENABLE CSR_MIE_FIRQ14E
179#define SLINK_RX_FIRQ_PENDING CSR_MIP_FIRQ14P
180#define SLINK_RX_RTE_ID RTE_TRAP_FIRQ_14
181#define SLINK_RX_TRAP_CODE TRAP_CODE_FIRQ_14
182#define SLINK_TX_FIRQ_ENABLE CSR_MIE_FIRQ15E
183#define SLINK_TX_FIRQ_PENDING CSR_MIP_FIRQ15P
184#define SLINK_TX_RTE_ID RTE_TRAP_FIRQ_15
185#define SLINK_TX_TRAP_CODE TRAP_CODE_FIRQ_15
198#define neorv32_heap_begin_c ((uint32_t)&__heap_start[0])
199#define neorv32_heap_end_c ((uint32_t)&__heap_end[0])
200#define neorv32_heap_size_c ((uint32_t)&__crt0_max_heap[0])
228 uint32_t uint32[
sizeof(uint64_t)/
sizeof(uint32_t)];
229 uint16_t uint16[
sizeof(uint64_t)/
sizeof(uint16_t)];
230 uint8_t uint8[
sizeof(uint64_t)/
sizeof(uint8_t)];
234 uint32_t uint32[
sizeof(uint32_t)/
sizeof(uint32_t)];
235 uint16_t uint16[
sizeof(uint32_t)/
sizeof(uint16_t)];
236 uint8_t uint8[
sizeof(uint32_t)/
sizeof(uint8_t)];
240 uint16_t uint16[
sizeof(uint16_t)/
sizeof(uint16_t)];
241 uint8_t uint8[
sizeof(uint16_t)/
sizeof(uint8_t)];
NEORV32_CLOCK_PRSC_enum
Definition neorv32.h:208
@ CLK_PRSC_4096
Definition neorv32.h:216
@ CLK_PRSC_1024
Definition neorv32.h:214
@ CLK_PRSC_64
Definition neorv32.h:212
@ CLK_PRSC_4
Definition neorv32.h:210
@ CLK_PRSC_128
Definition neorv32.h:213
@ CLK_PRSC_2048
Definition neorv32.h:215
@ CLK_PRSC_8
Definition neorv32.h:211
@ CLK_PRSC_2
Definition neorv32.h:209
General auxiliary functions header file.
Custom Functions Subsystem (CFS) HW driver header file.
CPU Core Functions HW driver header file.
Atomic memory access (read-modify-write) emulation functions using LR/SC pairs - header file.
CPU Core custom functions unit HW driver header file.
Control and Status Registers (CSR) definitions.
Cyclic redundancy check unit (CRC) HW driver header file.
Direct Memory Access Controller (DMA) HW driver header file.
General purpose input/output port unit (GPIO) HW driver header file.
General purpose timer (GPTMR) HW driver header file.
Helper macros for custom "intrinsics" / instructions.
Legacy compatibility layer.
Machine System Timer (MTIME) HW driver header file.
Smart LED Interface (NEOLED) HW driver header file.
1-Wire Interface Controller (ONEWIRE) HW driver header file.
Pulse-Width Modulation Controller (PWM) HW driver header file.
NEORV32 Runtime Environment.
Serial data interface controller (SPPI) HW driver header file.
Stream Link Interface HW driver header file.
Serial peripheral interface controller (SPI) HW driver header file.
System Information Memory (SYSINFO) HW driver header file.
True Random Number Generator (TRNG) HW driver header file.
Two-Wire Device Controller (TWD) HW driver header file.
Two-Wire Interface Controller (TWI) HW driver header file.
Universal asynchronous receiver/transmitter (UART0/UART1) HW driver header file.
Watchdog Timer (WDT) HW driver header file.
Execute in place module (XIP) HW driver header file.
External Interrupt controller HW driver header file.