FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timer_cfg_u Union Reference

Data Fields

struct {
   uint32_t   enable:1
 
   uint32_t   reset:1
 
   uint32_t   irq_en:1
 
   uint32_t   pad_0:1
 
   uint32_t   mode:1
 
   uint32_t   one_shot:1
 
   uint32_t   presc_en:1
 
   uint32_t   clk_source:1
 
   uint32_t   presc_val:8
 
   uint32_t   pad_1:15
 
   uint32_t   timer64_en:1
 
field
 
uint32_t word
 

Field Documentation

uint32_t timer_cfg_u::clk_source

Timer's clock source : FLL or Ref32kHz.

Referenced by __pi_perf_enable_timer().

struct { ... } timer_cfg_u::field
uint32_t timer_cfg_u::irq_en

Enable IRQ when counter matches compare value.

Referenced by __pi_perf_enable_timer(), pi_timer_irq_set(), system_core_clock_update(), and system_setup_systick().

uint32_t timer_cfg_u::mode

Timer counting mode : increment or reset when counter = compare.

Referenced by __pi_perf_enable_timer(), pi_timer_conf_init(), pi_timer_irq_set(), system_core_clock_update(), and system_setup_systick().

uint32_t timer_cfg_u::one_shot

Timer continous mode : enable or disable when counter = compare.

Referenced by __pi_perf_enable_timer(), and pi_timer_irq_set().

uint32_t timer_cfg_u::pad_0

Padding.

uint32_t timer_cfg_u::pad_1

Padding.

uint32_t timer_cfg_u::presc_en

Enable prescaler.

Referenced by __pi_perf_enable_timer().

uint32_t timer_cfg_u::presc_val

Prescaler value(only Timer_0/Timer_LO : Ftim = Fclk / (1 + val).

uint32_t timer_cfg_u::reset
uint32_t timer_cfg_u::timer64_en

Enable 64 bit mode timer, using both Timer_0(LO) & TImer_1(HI).

uint32_t timer_cfg_u::word

Timer config in 32bits format.

Referenced by pi_timer_init(), pi_timer_reset(), and pi_timer_start().