FreeRTOS port on GAP8/RISC-V
|
Data Structures | |
struct | rtc_data_s |
Macros | |
#define | PI_RTC_EVENT_ALARM |
#define | PI_RTC_EVENT_TIMER |
#define | PI_RTC_EVENT_CALIB |
Functions | |
void | __pi_rtc_conf_init (struct pi_rtc_conf *conf) |
int32_t | __pi_rtc_open (struct rtc_data_s **device_data, struct pi_rtc_conf *conf) |
void | __pi_rtc_close (struct rtc_data_s *device_data) |
int32_t | __pi_rtc_datetime_set (struct rtc_data_s *device_data, struct tm *time) |
int32_t | __pi_rtc_datetime_get (struct rtc_data_s *device_data, struct tm *time) |
int32_t | __pi_rtc_alarm_set (struct rtc_data_s *device_data, struct tm *alarm) |
int32_t | __pi_rtc_alarm_get (struct rtc_data_s *device_data, struct tm *alarm) |
int32_t | __pi_rtc_timer_set (struct rtc_data_s *device_data, uint32_t countdown) |
uint32_t | __pi_rtc_timer_get (struct rtc_data_s *device_data) |
int32_t | __pi_rtc_ioctl (struct rtc_data_s *device_data, uint32_t cmd, void *arg) |
#define PI_RTC_EVENT_ALARM |
Referenced by __pi_rtc_cb_attach(), __pi_rtc_ioctl(), __pi_rtc_irq_type_handler(), and __pi_rtc_open().
#define PI_RTC_EVENT_CALIB |
Referenced by __pi_rtc_cb_attach(), and __pi_rtc_irq_type_handler().
#define PI_RTC_EVENT_TIMER |
Referenced by __pi_rtc_cb_attach(), __pi_rtc_ioctl(), __pi_rtc_irq_type_handler(), and __pi_rtc_open().
int32_t __pi_rtc_alarm_get | ( | struct rtc_data_s * | device_data, |
struct tm * | alarm | ||
) |
int32_t __pi_rtc_alarm_set | ( | struct rtc_data_s * | device_data, |
struct tm * | alarm | ||
) |
void __pi_rtc_close | ( | struct rtc_data_s * | device_data | ) |
void __pi_rtc_conf_init | ( | struct pi_rtc_conf * | conf | ) |
References memset().
Referenced by pi_rtc_conf_init().
int32_t __pi_rtc_datetime_get | ( | struct rtc_data_s * | device_data, |
struct tm * | time | ||
) |
int32_t __pi_rtc_datetime_set | ( | struct rtc_data_s * | device_data, |
struct tm * | time | ||
) |
int32_t __pi_rtc_ioctl | ( | struct rtc_data_s * | device_data, |
uint32_t | cmd, | ||
void * | arg | ||
) |
int32_t __pi_rtc_open | ( | struct rtc_data_s ** | device_data, |
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(), rtc_data_s::device_id, rtc_data_s::event_task, g_rtc_data, hal_soc_eu_set_fc_mask(), rtc_data_s::nb_open, rtc_data_s::pending_irq, pi_fc_event_handler_set(), pi_fc_l1_malloc(), PI_RTC_CLK_DIV_DEFAULT, PI_RTC_EVENT_ALARM, PI_RTC_EVENT_TIMER, RTC_TRACE, RTC_TRACE_ERR, SOC_EVENT_RTC, and SOC_EVENT_RTC_APB.
uint32_t __pi_rtc_timer_get | ( | struct rtc_data_s * | device_data | ) |
References __pi_rtc_apb_reg_read(), and COUNTDOWN1_TIMER_OFFSET.
int32_t __pi_rtc_timer_set | ( | struct rtc_data_s * | device_data, |
uint32_t | countdown | ||
) |
References __pi_rtc_apb_reg_write(), COUNTDOWN1_INIT_OFFSET, and RTC_TRACE_ERR.