Contiki-NG
|
Files | |
file | rtimer-arch.c |
Implementation of the arch-specific rtimer functions for the CC13xx/CC26xx. | |
file | rtimer-arch.h |
Header file for the CC13xx/CC26xx rtimer driver. | |
Functions | |
void | rtimer_arch_init (void) |
We don't need to do anything special here. | |
void | rtimer_arch_schedule (rtimer_clock_t t) |
This function schedules a one-shot event with the AON RTC. | |
rtimer_clock_t | rtimer_arch_now () |
Returns the current real-time clock time. | |
Implementation of the rtimer module for the CC13xx/CC26xx
void rtimer_arch_init | ( | void | ) |
We don't need to do anything special here.
Initialized the architecture-dependent part of rtimer.
The RTC is initialised elsewhere
Definition at line 54 of file rtimer-arch.c.
rtimer_clock_t rtimer_arch_now | ( | ) |
Returns the current real-time clock time.
The value is read from the AON RTC counter and converted to a number of rtimer ticks
< ST count/compare value 0
< ST count/compare value 1
< ST count/compare value 2
< ST count/compare value 3
Definition at line 81 of file rtimer-arch.c.
void rtimer_arch_schedule | ( | rtimer_clock_t | t | ) |
This function schedules a one-shot event with the AON RTC.
Schedules an rtimer task to be triggered at time t.
This functions converts to a value suitable for the AON RTC.
< Compare value load status
< STx upload status signal
< ST count/compare value 3
< ST count/compare value 2
< ST count/compare value 1
< ST count/compare value 0
Definition at line 66 of file rtimer-arch.c.
References soc_rtc_schedule_one_shot().