FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/drivers/timer/timer.c File Reference

Macros

#define TIMER_INIT
 
#define TIMER_ENA
 

Functions

void pi_timer_init (timer_e timer, timer_cfg_u cfg, uint32_t cmp_val)
 Initialize a timer. More...
 
void pi_timer_reset (timer_e timer)
 Reset a timer counter. More...
 
void pi_timer_start (timer_e timer)
 Start a timer. More...
 
void pi_timer_stop (timer_e timer)
 Stop a timer. More...
 
uint32_t pi_timer_value_read (timer_e timer)
 Get a timer's counter value. More...
 
uint32_t system_core_clock_get ()
 Get current SystemCoreClock value. More...
 
void pi_timer_irq_set (timer_e timer, uint32_t time_us, uint8_t one_shot)
 Set timer to trigger IRQ. More...
 

Variables

static uint32_t __g_timer_state
 

Macro Definition Documentation

#define TIMER_ENA
#define TIMER_INIT

Referenced by pi_timer_init().

Function Documentation

uint32_t system_core_clock_get ( )
Returns
Current core frequency.

Variable Documentation

uint32_t __g_timer_state
static