Contiki-NG
|
Implementation of the clock libary for CC13xx/CC26xx. More...
#include "contiki.h"
#include "sys/cc.h"
#include "sys/clock.h"
#include "sys/etimer.h"
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/aon_rtc.h)>
#include <DeviceFamily_constructPath(driverlib/systick.h)>
#include <ti/drivers/dpl/ClockP.h>
#include <ti/drivers/power/PowerCC26XX.h>
#include "watchdog-arch.h"
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
bool | clock_arch_enter_idle (void) |
Prepare to enter some low-power mode. More... | |
void | clock_arch_exit_idle (void) |
Cleanup after returning from low-power mode. | |
void | clock_arch_standby_policy (void) |
Called by the Power driver when dropping to some low-power state. | |
void | clock_init (void) |
Initialize the clock library. More... | |
clock_time_t | clock_time (void) |
Get the current clock time. More... | |
unsigned long | clock_seconds (void) |
Get the current value of the platform seconds. More... | |
void | clock_wait (clock_time_t i) |
Wait for a given number of ticks. More... | |
void | clock_delay_usec (uint16_t usec) |
Delay a given number of microseconds. More... | |
void | clock_delay (unsigned int i) |
Obsolete delay function but we implement it here since some code still uses it. More... | |
Implementation of the clock libary for CC13xx/CC26xx.
The periodic polling of etimer is implemented using SysTick. Since SysTick is paused when the system clock stopped, that is when the device enters some low-power mode, a wakeup clock is armed with the next etimer expiration time OR watchdog timeout everytime the device enters some low-power mode.
Definition in file clock-arch.c.