![]() |
NEORV32 - Software Framework Documentation
|
CPU/Processor test program. More...
Macros | |
User configuration | |
#define | BAUD_RATE (19200) |
#define | ADDR_UNALIGNED_1 (0x00000001) |
#define | ADDR_UNALIGNED_2 (0x00000002) |
#define | ADDR_UNREACHABLE (IO_BASE_ADDRESS-4) |
#define | ADDR_READONLY ((uint32_t)&NEORV32_SYSINFO->CLK) |
#define | EXT_MEM_BASE (0xF0000000) |
UART print macros | |
#define | PRINT_STANDARD(...) neorv32_uart0_printf(__VA_ARGS__) |
#define | PRINT_CRITICAL(...) neorv32_uart0_printf(__VA_ARGS__) |
Functions | |
void | sim_irq_trigger (uint32_t sel) |
void | global_trap_handler (void) |
void | xirq_trap_handler0 (void) |
void | xirq_trap_handler1 (void) |
void | test_ok (void) |
void | test_fail (void) |
int | main () |
void | __neorv32_crt0_after_main (int32_t return_code) |
CPU/Processor test program.
#define ADDR_READONLY ((uint32_t)&NEORV32_SYSINFO->CLK) |
UART BAUD rate
#define ADDR_UNALIGNED_1 (0x00000001) |
UART BAUD rate
#define ADDR_UNALIGNED_2 (0x00000002) |
UART BAUD rate
#define ADDR_UNREACHABLE (IO_BASE_ADDRESS-4) |
UART BAUD rate
#define BAUD_RATE (19200) |
UART BAUD rate
#define EXT_MEM_BASE (0xF0000000) |
UART BAUD rate
void __neorv32_crt0_after_main | ( | int32_t | return_code | ) |
"after-main" handler that is executed after the application's main function returns (called by crt0.S start-up code): Output minimal test report to physical UART
void global_trap_handler | ( | void | ) |
Trap handler for ALL exceptions/interrupts.
int main | ( | void | ) |
High-level CPU/processor test program.
void sim_irq_trigger | ( | uint32_t | sel | ) |
Simulation-based function to set/clear CPU interrupts (MSI, MEI).
[in] | sel | IRQ select mask (bit positions according to NEORV32_CSR_MIE_enum). |
void test_fail | ( | void | ) |
Test results helper function: Shows "[FAIL]" and increments global cnt_fail
void test_ok | ( | void | ) |
Test results helper function: Shows "[ok]" and increments global cnt_ok
void xirq_trap_handler0 | ( | void | ) |
XIRQ handler channel 0.
void xirq_trap_handler1 | ( | void | ) |
XIRQ handler channel 1.