![]() |
Contiki-NG
|
Implementation of the rtimer module for the CC13xx/CC26xx. More...
Files | |
| file | arch/cpu/cc26x0-cc13x0/rtimer-arch.c |
| Implementation of the arch-specific rtimer functions for the CC13xx/CC26xx. | |
| file | arch/cpu/cc26x0-cc13x0/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
We don't need to explicitly initialise anything but this routine is required by the API.
Initialized the architecture-dependent part of rtimer.
The Sleep Timer starts ticking automatically as soon as the device turns on. We don't need to turn on interrupts before the first call to rtimer_arch_schedule()
Definition at line 54 of file rtimer-arch.c.
| rtimer_clock_t rtimer_arch_now | ( | void | ) |
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.
| 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.
< 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().