Basic definitions for the RISC-V common module. More...
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.
Definition in file cpu.h.
#include "thread.h"
#include "macros/units.h"
#include "vendor/platform.h"
#include "vendor/plic_driver.h"
Go to the source code of this file.
Functions | |
void | cpu_init (void) |
Initialization of the CPU. | |
void | clock_init (void) |
Initialization of the clock. | |
uint32_t | cpu_freq (void) |
Get and eventually compute the current CPU core clock frequency. More... | |
void | irq_init (void) |
Initialization of interrupts. | |
static void | cpu_print_last_instruction (void) |
Print the last instruction's address. More... | |
void | nanostubs_init (void) |
Initialization of the Newlib-nano stub. | |