Contiki-NG
|
Files | |
file | soc-rtc.c |
Implementation of the CC13xx/CC26xx AON RTC driver. | |
file | soc-rtc.h |
Header file for the CC13xx/CC26xx AON RTC driver. | |
Functions | |
void | soc_rtc_init (void) |
Initialise the CC13XX/CC26XX AON RTC module. | |
rtimer_clock_t | soc_rtc_get_next_trigger (void) |
Return the time of the next scheduled rtimer event. | |
void | soc_rtc_schedule_one_shot (uint32_t channel, uint32_t t) |
Schedule an AON RTC channel 0 one-shot compare event. | |
Underpins the platform's software clocks and timers
rtimer_clock_t soc_rtc_get_next_trigger | ( | void | ) |
void soc_rtc_init | ( | void | ) |
Initialise the CC13XX/CC26XX AON RTC module.
This timer configures AON RTC channels.
This function must be called before clock_init() and rtimer_init()
Definition at line 71 of file soc-rtc.c.
Referenced by platform_init_stage_one().
void soc_rtc_schedule_one_shot | ( | uint32_t | channel, |
uint32_t | t ) |
Schedule an AON RTC channel 0 one-shot compare event.
channel | AON_RTC_CH0 or AON_RTC_CH1 |
t | The time when the event will be fired. This is an absolute time, in other words the event will fire AT time t, not IN t ticks |
Channel AON_RTC_CH0 is reserved for the rtimer. AON_RTC_CH1 is reserved for the system clock.
User applications should not use this function. User applications should instead use Contiki's timer-related libraries
Definition at line 125 of file soc-rtc.c.
Referenced by rtimer_arch_schedule().