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  periph_cpu.h
 CPU specific definitions for internal peripheral handling.
 

Typedefs

typedef void(* external_isr_ptr_t) (int intNum)
 External ISR callback.
 

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.
 
void set_external_isr_cb (int intNum, external_isr_ptr_t cbFunc)
 Set External ISR callback.
 
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 74 of file cpu.h.