![]() |
NEORV32 - Software Framework Documentation
|
NEORV32 Runtime Environment. More...
Functions | |
static void | __neorv32_rte_core (void) |
static void | __neorv32_rte_debug_handler (void) |
static void | __neorv32_rte_print_true_false (int state) |
static void | __neorv32_rte_print_hex_word (uint32_t num) |
void | neorv32_rte_setup (void) |
int | neorv32_rte_handler_install (int id, void(*handler)(void)) |
int | neorv32_rte_handler_uninstall (int id) |
uint32_t | neorv32_rte_context_get (int x) |
void | neorv32_rte_context_put (int x, uint32_t data) |
void | neorv32_rte_print_info (void) |
void | neorv32_rte_print_hw_config (void) |
void | neorv32_rte_print_hw_version (void) |
void | neorv32_rte_print_credits (void) |
void | neorv32_rte_print_logo (void) |
void | neorv32_rte_print_license (void) |
Variables | |
static uint32_t | __neorv32_rte_vector_lut [NEORV32_RTE_NUM_TRAPS] |
NEORV32 Runtime Environment.
|
static |
NEORV32 runtime environment (RTE): This is the core of the NEORV32 RTE (first-level trap handler, executed in machine mode).
|
static |
NEORV32 runtime environment (RTE): Debug trap handler, printing various information via UART0.
|
static |
NEORV32 runtime environment (RTE): Private function to print 32-bit number as 8-digit hexadecimal value (with "0x" suffix).
[in] | num | Number to print as hexadecimal via UART0. |
|
static |
NEORV32 runtime environment (RTE): Private function to print true or false via UART0.
[in] | state | Print 'true' when !=0, print 'false' when 0 |
uint32_t neorv32_rte_context_get | ( | int | x | ) |
NEORV32 runtime environment (RTE): Read register from application context.
[in] | x | Register number (0..31, corresponds to register x0..x31). |
void neorv32_rte_context_put | ( | int | x, |
uint32_t | data | ||
) |
NEORV32 runtime environment (RTE): Write register in application context.
[in] | x | Register number (0..31, corresponds to register x0..x31). |
[in] | data | Data to be written to register x. |
int neorv32_rte_handler_install | ( | int | id, |
void(*)(void) | handler | ||
) |
NEORV32 runtime environment (RTE): Install trap handler function (second-level trap handler).
[in] | id | Identifier (type) of the targeted trap. See NEORV32_RTE_TRAP_enum. |
[in] | handler | The actual handler function for the specified trap (function MUST be of type "void function(void);"). |
int neorv32_rte_handler_uninstall | ( | int | id | ) |
NEORV32 runtime environment (RTE): Uninstall trap handler function from NEORV32 runtime environment, which was previously installed via neorv32_rte_handler_install(uint8_t id, void (*handler)(void)).
[in] | id | Identifier (type) of the targeted trap. See NEORV32_RTE_TRAP_enum. |
void neorv32_rte_print_credits | ( | void | ) |
NEORV32 runtime environment (RTE): Print project credits via UART0.
void neorv32_rte_print_hw_config | ( | void | ) |
NEORV32 runtime environment (RTE): Print hardware configuration information via UART0.
void neorv32_rte_print_hw_version | ( | void | ) |
NEORV32 runtime environment (RTE): Print the processor version in human-readable format via UART0.
void neorv32_rte_print_info | ( | void | ) |
NEORV32 runtime environment (RTE): Print current RTE configuration via UART0.
void neorv32_rte_print_license | ( | void | ) |
NEORV32 runtime environment (RTE): Print project license via UART0.
void neorv32_rte_print_logo | ( | void | ) |
NEORV32 runtime environment (RTE): Print project logo via UART0.
void neorv32_rte_setup | ( | void | ) |
NEORV32 runtime environment (RTE): Setup RTE.
|
static |
NEORV32 runtime environment (RTE): The >private< trap vector look-up table of the NEORV32 RTE.