Contiki-NG
|
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. | |
void | rtimer_arch_init (void) |
TODO. | |
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 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.
Initialized the architecture-dependent part of rtimer.
Definition at line 101 of file rtimer-arch.c.
References rtimer_clock_stub(), and rtimer_isr_hook().
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 181 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 t
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 166 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, depending on which event triggered the interrupt.
Definition at line 78 of file rtimer-arch.c.
References rtimer_run_next().
Referenced by rtimer_arch_init().