FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timer_unit_accessors.h File Reference

Functions

static uint32_t timer_unit_cfg_lo_get (uint32_t base)
 
static void timer_unit_cfg_lo_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_cfg_hi_get (uint32_t base)
 
static void timer_unit_cfg_hi_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_cnt_lo_get (uint32_t base)
 
static void timer_unit_cnt_lo_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_cnt_hi_get (uint32_t base)
 
static void timer_unit_cnt_hi_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_cmp_lo_get (uint32_t base)
 
static void timer_unit_cmp_lo_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_cmp_hi_get (uint32_t base)
 
static void timer_unit_cmp_hi_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_start_lo_get (uint32_t base)
 
static void timer_unit_start_lo_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_start_hi_get (uint32_t base)
 
static void timer_unit_start_hi_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_reset_lo_get (uint32_t base)
 
static void timer_unit_reset_lo_set (uint32_t base, uint32_t value)
 
static uint32_t timer_unit_reset_hi_get (uint32_t base)
 
static void timer_unit_reset_hi_set (uint32_t base, uint32_t value)
 

Function Documentation

static uint32_t timer_unit_cfg_hi_get ( uint32_t  base)
inlinestatic

References GAP_READ, and TIMER_UNIT_CFG_HI_OFFSET.

Referenced by pi_timer_stop().

static void timer_unit_cfg_hi_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CFG_HI_OFFSET.

Referenced by pi_timer_init(), and pi_timer_stop().

static uint32_t timer_unit_cfg_lo_get ( uint32_t  base)
inlinestatic

References GAP_READ, and TIMER_UNIT_CFG_LO_OFFSET.

Referenced by pi_timer_stop().

static void timer_unit_cfg_lo_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CFG_LO_OFFSET.

Referenced by pi_timer_init(), and pi_timer_stop().

static uint32_t timer_unit_cmp_hi_get ( uint32_t  base)
inlinestatic
static void timer_unit_cmp_hi_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CMP_HI_OFFSET.

Referenced by pi_timer_init().

static uint32_t timer_unit_cmp_lo_get ( uint32_t  base)
inlinestatic
static void timer_unit_cmp_lo_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CMP_LO_OFFSET.

Referenced by pi_timer_init().

static uint32_t timer_unit_cnt_hi_get ( uint32_t  base)
inlinestatic

References GAP_READ, and TIMER_UNIT_CNT_HI_OFFSET.

Referenced by pi_timer_value_read().

static void timer_unit_cnt_hi_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CNT_HI_OFFSET.

Referenced by pi_timer_init().

static uint32_t timer_unit_cnt_lo_get ( uint32_t  base)
inlinestatic

References GAP_READ, and TIMER_UNIT_CNT_LO_OFFSET.

Referenced by pi_timer_value_read().

static void timer_unit_cnt_lo_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_CNT_LO_OFFSET.

Referenced by pi_timer_init().

static uint32_t timer_unit_reset_hi_get ( uint32_t  base)
inlinestatic
static void timer_unit_reset_hi_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_RESET_HI_OFFSET.

Referenced by pi_timer_reset().

static uint32_t timer_unit_reset_lo_get ( uint32_t  base)
inlinestatic
static void timer_unit_reset_lo_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_RESET_LO_OFFSET.

Referenced by pi_timer_reset().

static uint32_t timer_unit_start_hi_get ( uint32_t  base)
inlinestatic
static void timer_unit_start_hi_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_START_HI_OFFSET.

Referenced by pi_timer_start().

static uint32_t timer_unit_start_lo_get ( uint32_t  base)
inlinestatic
static void timer_unit_start_lo_set ( uint32_t  base,
uint32_t  value 
)
inlinestatic

References GAP_WRITE, and TIMER_UNIT_START_LO_OFFSET.

Referenced by pi_timer_start().