![]() |
NEORV32 API Reference
The NEORV32 RISC-V Processor
|
NEORV32 Runtime Environment. More...
#include <stdint.h>Go to the source code of this file.
Functions | |
Prototypes | |
| void | neorv32_rte_setup (void) |
| int | neorv32_rte_handler_install (uint32_t code, void(*handler)(void)) |
| int | neorv32_rte_handler_uninstall (uint32_t code) |
| uint32_t | neorv32_rte_context_get (int x) |
| void | neorv32_rte_context_put (int x, uint32_t data) |
NEORV32 Runtime Environment.
| uint32_t neorv32_rte_context_get | ( | int | x | ) |
Read register from application context (on stack).
| [in] | x | Register number (0..31, corresponds to register x0..x31). |
| void neorv32_rte_context_put | ( | int | x, |
| uint32_t | data ) |
Write register to application context (on stack).
| [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 | ( | uint32_t | code, |
| void(* | handler )(void) ) |
Install trap handler function (second-level trap handler).
| [in] | code | Trap code (MCAUSE CSR value) of the targeted trap. See NEORV32_EXCEPTION_CODES_enum. |
| [in] | handler | The actual handler function for the specified trap (function must be of type "void function(void);"). |
| int neorv32_rte_handler_uninstall | ( | uint32_t | code | ) |
Uninstall trap handler (second-level trap handler) and restore original debug handler.
| [in] | code | Trap code (MCAUSE CSR value) of the targeted trap. See NEORV32_EXCEPTION_CODES_enum. |
| void neorv32_rte_setup | ( | void | ) |
Setup NEORV32 runtime environment.