fe310/include/cpu.h

Basic definitions for the RISC-V common module.

When ever you want to do something hardware related, that is accessing MCUs registers, just include this file. It will then make sure that the MCU specific headers are included.

void cpu_init(void)

Initialization of the CPU.

void cpu_print_last_instruction(void)

Print the last instruction’s address.

: Not supported

void nanostubs_init(void)

Initialization of the Newlib-nano stub.