Contiki-NG
|
Implementation of the rtimer module for the CC13xx/CC26xx. More...
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. More... | |
void | rtimer_arch_schedule (rtimer_clock_t t) |
Schedules an rtimer task to be triggered at time t. More... | |
rtimer_clock_t | rtimer_arch_now () |
Returns the current real-time clock time. More... | |
Implementation of the rtimer module for the CC13xx/CC26xx.
void rtimer_arch_init | ( | void | ) |
We don't need to do anything special here.
We don't need to explicitly initialise anything but this routine is required by the API.
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
Definition at line 86 of file rtimer-arch.c.
void rtimer_arch_schedule | ( | rtimer_clock_t | t | ) |
Schedules an rtimer task to be triggered at time t.
t | The time when the task will need executed. |
t is an absolute time, in other words the task will be executed AT time t, not IN t rtimer ticks.
This function schedules a one-shot event with the AON RTC.
This functions converts to a value suitable for the AON RTC.
Definition at line 71 of file rtimer-arch.c.