FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/include/pmsis/implem/hal/rtc/rtc.h File Reference

Functions

static void rtc_apb_sr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_sr_get (uint8_t rtc_id)
 
static void rtc_apb_cr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_cr_get (uint8_t rtc_id)
 
static void rtc_apb_dr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_dr_get (uint8_t rtc_id)
 
static void rtc_apb_icr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_icr_get (uint8_t rtc_id)
 
static void rtc_apb_imr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_imr_get (uint8_t rtc_id)
 
static void rtc_apb_ifr_set (uint8_t rtc_id, uint32_t value)
 
static uint32_t rtc_apb_ifr_get (uint8_t rtc_id)
 
static uint32_t hal_rtc_status_get (uint8_t rtc_id)
 
static void hal_rtc_request_set (uint8_t rtc_id, uint8_t addr, uint8_t write)
 
static void hal_rtc_data_set (uint8_t rtc_id, uint32_t data)
 
static uint32_t hal_rtc_data_get (uint8_t rtc_id)
 
static void hal_rtc_irq_flag_read_reset (uint8_t rtc_id)
 
static void hal_rtc_irq_flag_write_reset (uint8_t rtc_id)
 

Function Documentation

static uint32_t hal_rtc_data_get ( uint8_t  rtc_id)
inlinestatic

References rtc_apb_dr_get().

Referenced by __pi_rtc_apb_reg_read().

static void hal_rtc_data_set ( uint8_t  rtc_id,
uint32_t  data 
)
inlinestatic

APB Data Register.

References rtc_apb_dr_set().

Referenced by __pi_rtc_apb_reg_write().

static void hal_rtc_irq_flag_read_reset ( uint8_t  rtc_id)
inlinestatic
static void hal_rtc_irq_flag_write_reset ( uint8_t  rtc_id)
inlinestatic
static void hal_rtc_request_set ( uint8_t  rtc_id,
uint8_t  addr,
uint8_t  write 
)
inlinestatic

APB Control Register.

References RTC_APB_CR_APB_ADDR, RTC_APB_CR_APB_OP, and rtc_apb_cr_set().

Referenced by __pi_rtc_apb_reg_read(), and __pi_rtc_apb_reg_write().

static uint32_t hal_rtc_status_get ( uint8_t  rtc_id)
inlinestatic

APB Status Register.

References rtc_apb_sr_get().

static uint32_t rtc_apb_cr_get ( uint8_t  rtc_id)
inlinestatic

References hal_read32(), and rtc.

static void rtc_apb_cr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic

References hal_write32(), and rtc.

Referenced by hal_rtc_request_set().

static uint32_t rtc_apb_dr_get ( uint8_t  rtc_id)
inlinestatic

References hal_read32(), and rtc.

Referenced by hal_rtc_data_get().

static void rtc_apb_dr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic

References hal_write32(), and rtc.

Referenced by hal_rtc_data_set().

static uint32_t rtc_apb_icr_get ( uint8_t  rtc_id)
inlinestatic

References hal_read32(), and rtc.

static void rtc_apb_icr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic

References hal_write32(), and rtc.

static uint32_t rtc_apb_ifr_get ( uint8_t  rtc_id)
inlinestatic
static void rtc_apb_ifr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic
static uint32_t rtc_apb_imr_get ( uint8_t  rtc_id)
inlinestatic

References hal_read32(), and rtc.

static void rtc_apb_imr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic

References hal_write32(), and rtc.

static uint32_t rtc_apb_sr_get ( uint8_t  rtc_id)
inlinestatic

References hal_read32(), and rtc.

Referenced by hal_rtc_status_get().

static void rtc_apb_sr_set ( uint8_t  rtc_id,
uint32_t  value 
)
inlinestatic

References hal_write32(), and rtc.