Contiki-NG
|
Implementation of the rtimer module for CC13xx/CC26xx. More...
Files | |
file | rtimer-arch.c |
Implementation of the rtimer driver for CC13xx/CC26xx. | |
file | rtimer-arch.h |
Header file of the rtimer driver for CC13xx/CC26xx. | |
Functions | |
static void | rtimer_clock_stub (uintptr_t unused) |
Stub function used when creating the dummy clock object. | |
static void | rtimer_isr_hook (void) |
The Man-in-the-Middle ISR hook for the HWI dispatch ISR. More... | |
void | rtimer_arch_init (void) |
TODO. 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 CC13xx/CC26xx.
This header is included by os/sys/rtimer.h.
RTIMER_ARCH_SECOND is defined in cc13xx-cc26xx-def.h.
void rtimer_arch_init | ( | void | ) |
TODO.
We don't need to explicitly initialise anything but this routine is required by the API.
Definition at line 101 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 185 of file rtimer-arch.c.
void rtimer_arch_schedule | ( | rtimer_clock_t | t | ) |
Schedules an rtimer task to be triggered at time t
.
Schedules an rtimer task to be triggered at time t.
t | The time when the task will need executed. \p t is an absolute time, in other words the task will be executed AT time \p t, not IN \p t rtimer ticks. This function schedules a one-shot event with the AON RTC. This functions converts \p t to a value suitable for the AON RTC. |
Definition at line 170 of file rtimer-arch.c.
|
static |
The Man-in-the-Middle ISR hook for the HWI dispatch ISR.
This will be the ISR dispatched when INT_AON_RTC_COMB is triggered, and will either dispatch the interrupt to the rtimer driver or the HWI driver, depening on which event triggered the interrupt.
Definition at line 78 of file rtimer-arch.c.