![]() |
NEORV32 - Software Framework Documentation
|
Wrappers and functions for backwards compatibility. More...
Go to the source code of this file.
Macros | |
Backward-compatibility layer (before version v1.7.8.2) | |
| |
#define | neorv32_cfu_cmd0(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 0, rs1, rs2) |
#define | neorv32_cfu_cmd1(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 1, rs1, rs2) |
#define | neorv32_cfu_cmd2(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 2, rs1, rs2) |
#define | neorv32_cfu_cmd3(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 3, rs1, rs2) |
#define | neorv32_cfu_cmd4(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 4, rs1, rs2) |
#define | neorv32_cfu_cmd5(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 5, rs1, rs2) |
#define | neorv32_cfu_cmd6(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 6, rs1, rs2) |
#define | neorv32_cfu_cmd7(funct7, rs1, rs2) neorv32_cfu_r3_instr(funct7, 7, rs1, rs2) |
Functions | |
void | neorv32_uart0_print (const char *s) |
void | neorv32_uart1_print (const char *s) |
int | neorv32_rte_exception_install (uint8_t id, void(*handler)(void)) |
int | neorv32_rte_exception_uninstall (uint8_t id) |
uint64_t | neorv32_cpu_get_systime (void) |
void | neorv32_cpu_eint (void) |
void | neorv32_cpu_dint (void) |
int | neorv32_cpu_irq_enable (uint8_t irq_sel) |
int | neorv32_cpu_irq_disable (uint8_t irq_sel) |
Wrappers and functions for backwards compatibility.
#define neorv32_cfu_cmd0 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 0, rs1, rs2) |
R3-type CFU custom instruction 0 (funct3 = 000)
#define neorv32_cfu_cmd1 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 1, rs1, rs2) |
R3-type CFU custom instruction 1 (funct3 = 001)
#define neorv32_cfu_cmd2 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 2, rs1, rs2) |
R3-type CFU custom instruction 2 (funct3 = 010)
#define neorv32_cfu_cmd3 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 3, rs1, rs2) |
R3-type CFU custom instruction 3 (funct3 = 011)
#define neorv32_cfu_cmd4 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 4, rs1, rs2) |
R3-type CFU custom instruction 4 (funct3 = 100)
#define neorv32_cfu_cmd5 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 5, rs1, rs2) |
R3-type CFU custom instruction 5 (funct3 = 101)
#define neorv32_cfu_cmd6 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 6, rs1, rs2) |
R3-type CFU custom instruction 6 (funct3 = 110)
#define neorv32_cfu_cmd7 | ( | funct7, | |
rs1, | |||
rs2 | |||
) | neorv32_cfu_r3_instr(funct7, 7, rs1, rs2) |
R3-type CFU custom instruction 7 (funct3 = 111)
|
inline |
Disable global CPU interrupts (via MIE flag in mstatus CSR).
|
inline |
Enable global CPU interrupts (via MIE flag in mstatus CSR).
|
inline |
Get current system time from time[h] CSR.
|
inline |
Disable specific interrupt source.
[in] | irq_sel | CPU interrupt select. See NEORV32_CSR_MIE_enum. |
|
inline |
Enable specific interrupt source.
[in] | irq_sel | CPU interrupt select. See NEORV32_CSR_MIE_enum. |
|
inline |
Install trap handler function to NEORV32 runtime environment.
[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);"). |
|
inline |
Uninstall trap handler function from NEORV32 runtime environment, which was previously installed via neorv32_rte_exception_install(uint8_t id, void (*handler)(void)).
[in] | id | Identifier (type) of the targeted trap. See NEORV32_RTE_TRAP_enum. |
|
inline |
Print string (zero-terminated) via UART0. Print full line break "\r\n" for every '
'.
[in] | s | Pointer to string. |
|
inline |
Print string (zero-terminated) via UART1. Print full line break "\r\n" for every '
'.
[in] | s | Pointer to string. |