FreeRTOS port on GAP8/RISC-V
|
Functions | |
void | __pi_rtc_conf_init (struct pi_rtc_conf *conf) |
int32_t | __pi_rtc_open (uint8_t rtc_id, struct pi_rtc_conf *conf) |
void | __pi_rtc_close (uint8_t rtc_id) |
int32_t | __pi_rtc_datetime_set (uint8_t rtc_id, struct tm *time) |
int32_t | __pi_rtc_datetime_get (uint8_t rtc_id, struct tm *time) |
int32_t | __pi_rtc_alarm_set (uint8_t rtc_id, struct tm *alarm) |
int32_t | __pi_rtc_alarm_get (uint8_t rtc_id, struct tm *alarm) |
int32_t | __pi_rtc_timer_set (uint8_t rtc_id, uint32_t countdown) |
uint32_t | __pi_rtc_timer_get (uint8_t rtc_id) |
int32_t | __pi_rtc_ioctl (uint8_t rtc_id, uint32_t cmd, void *arg) |
int32_t __pi_rtc_alarm_get | ( | uint8_t | rtc_id, |
struct tm * | alarm | ||
) |
References __pi_rtc_apb_reg_read(), __pi_rtc_bcd_to_datetime(), ALARM1_DATE_OFFSET, ALARM1_TIME_OFFSET, pi_rtc_bcd_datetime_t::date, and pi_rtc_bcd_datetime_t::time.
Referenced by pi_rtc_alarm_get().
int32_t __pi_rtc_alarm_set | ( | uint8_t | rtc_id, |
struct tm * | alarm | ||
) |
References __pi_rtc_apb_reg_write(), __pi_rtc_datetime_check(), __pi_rtc_datetime_to_bcd(), ALARM1_DATE_OFFSET, ALARM1_TIME_OFFSET, pi_rtc_bcd_datetime_t::date, and pi_rtc_bcd_datetime_t::time.
Referenced by __pi_rtc_open(), and pi_rtc_alarm_set().
void __pi_rtc_close | ( | uint8_t | rtc_id | ) |
References __pi_rtc_disable(), hal_soc_eu_clear_fc_mask(), pi_fc_event_handler_clear(), SOC_EVENT_RTC, and SOC_EVENT_RTC_APB.
Referenced by pi_rtc_close().
void __pi_rtc_conf_init | ( | struct pi_rtc_conf * | conf | ) |
int32_t __pi_rtc_datetime_get | ( | uint8_t | rtc_id, |
struct tm * | time | ||
) |
References __pi_rtc_apb_reg_read(), __pi_rtc_bcd_to_datetime(), CALENDAR_DATE_OFFSET, CALENDAR_TIME_OFFSET, pi_rtc_bcd_datetime_t::date, and pi_rtc_bcd_datetime_t::time.
Referenced by pi_rtc_datetime_get().
int32_t __pi_rtc_datetime_set | ( | uint8_t | rtc_id, |
struct tm * | time | ||
) |
int32_t __pi_rtc_ioctl | ( | uint8_t | rtc_id, |
uint32_t | cmd, | ||
void * | arg | ||
) |
int32_t __pi_rtc_open | ( | uint8_t | rtc_id, |
struct pi_rtc_conf * | conf | ||
) |
References __pi_rtc_alarm_set(), __pi_rtc_apb_handler(), __pi_rtc_clock_div_set(), __pi_rtc_datetime_set(), __pi_rtc_handler(), __pi_rtc_soft_reset(), __pi_rtc_timer_set(), hal_soc_eu_set_fc_mask(), pi_fc_event_handler_set(), PI_RTC_CLK_DIV_DEFAULT, SOC_EVENT_RTC, and SOC_EVENT_RTC_APB.
Referenced by pi_rtc_open().
uint32_t __pi_rtc_timer_get | ( | uint8_t | rtc_id | ) |
References __pi_rtc_apb_reg_read(), and COUNTDOWN1_TIMER_OFFSET.
Referenced by pi_rtc_timer_get().
int32_t __pi_rtc_timer_set | ( | uint8_t | rtc_id, |
uint32_t | countdown | ||
) |
References __pi_rtc_apb_reg_write(), and COUNTDOWN1_INIT_OFFSET.
Referenced by __pi_rtc_open(), and pi_rtc_timer_set().