Common implementations and headers for the RISC-V CPU.
More...
Common implementations and headers for the RISC-V CPU.
|
file | clic.h |
| RISCV CLIC interrupt controller definitions.
|
|
file | context_frame.h |
| Thread context frame stored on stack.
|
|
file | cpu_common.h |
| Basic definitions for the RISC-V CPU module.
|
|
file | cpu_conf_common.h |
| RISC-V CPU configuration options.
|
|
file | cpucycle.h |
| Functions to read CPU cycle counter.
|
|
file | irq_arch.h |
| Implementation of the kernels irq interface.
|
|
file | periph_cpu_common.h |
| CPU specific definitions for internal peripheral handling.
|
|
file | plic.h |
| Platform-Level interrupt controller driver.
|
|
file | pmp.h |
| RISC-V PMP configuration options.
|
|
◆ cpu_get_caller_pc()
static uintptr_t cpu_get_caller_pc |
( |
void |
| ) |
|
|
inlinestatic |
Gets the last instruction's address.
- Todo:
- : Not supported
Definition at line 54 of file cpu_common.h.
◆ cpu_reg_disable_bits()
static void cpu_reg_disable_bits |
( |
volatile uint32_t * |
reg, |
|
|
uint32_t |
mask |
|
) |
| |
|
inlinestatic |
Convenience function to clear bit flags in a register.
- Parameters
-
reg | register to clear bits in |
mask | bits to clear in the register |
Definition at line 79 of file cpu_common.h.
◆ cpu_reg_enable_bits()
static void cpu_reg_enable_bits |
( |
volatile uint32_t * |
reg, |
|
|
uint32_t |
mask |
|
) |
| |
|
inlinestatic |
Convenience function to set bit flags in a register.
- Parameters
-
reg | register to set bits in |
mask | bits to set in the register |
Definition at line 67 of file cpu_common.h.
◆ riscv_init()
Initialize rv32i specific core parts of the CPU.
Initialized the interrupt controller and the enables the FPU if present