![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Bare-metal system management. More...
Functions | |
static void | system_trap_handler (void) |
void | system_setup (void) |
int | system_exe_load (int(*dev_init)(void), int(*stream_get)(uint32_t *rdata)) |
int | system_exe_store (int(*dev_init)(void), int(*dev_erase)(void), int(*stream_put)(uint32_t wdata)) |
void | system_boot_app (void) |
Variables | |
uint32_t | g_exe_size = 0 |
uint32_t | g_flash_addr = 0 |
Bare-metal system management.
void system_boot_app | ( | void | ) |
Boot application program.
int system_exe_load | ( | int(* | dev_init )(void), |
int(* | stream_get )(uint32_t *rdata) ) |
Load executable: get data from device stream and store to main memory.
dev_init | Function pointer ("int foo(void)") for device setup. |
stream_get | Function pointer ("int bar(uint32_t* rdata)") to get the next consecutive 32-bit word from an application source stream. |
int system_exe_store | ( | int(* | dev_init )(void), |
int(* | dev_erase )(void), | ||
int(* | stream_put )(uint32_t wdata) ) |
Store executable: copy data from main memory to device stream.
dev_init | Function pointer ("int foo(void)") for device setup. |
dev_erase | Function pointer ("int tmp(void)") for device erasure. |
stream_put | Function pointer ("int bar(uint32_t wdata)") to put the next consecutive 32-bit word to an application source stream. |
void system_setup | ( | void | ) |
Setup processor system.
|
static |
Bare-metal trap handler. Used for the CLINT timer tick and to capture any other traps.