SiFive FE310

Common implementations and headers for RISC-V. More...

Detailed Description

Common implementations and headers for RISC-V.

Files

file  context_frame.h
 Thread context frame stored on stack.
 
file  cpu.h
 Basic definitions for the RISC-V common module.
 
file  cpu_conf.h
 CPU specific configuration options.
 
file  cpucycle.h
 Functions to read CPU cycle counter.
 
file  irq_arch.h
 Implementation of the kernels irq interface.
 
file  periph_cpu.h
 CPU specific definitions for internal peripheral handling.
 
file  plic.h
 Platform-Level interrupt controller driver.
 

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.
 

Function Documentation

◆ cpu_freq()

uint32_t cpu_freq ( void  )

Get and eventually compute the current CPU core clock frequency.

Returns
the cpu core clock frequency in Hz

◆ cpu_print_last_instruction()

static void cpu_print_last_instruction ( void  )
inlinestatic

Print the last instruction's address.

Todo:
: Not supported

Definition at line 65 of file cpu.h.