Contiki-NG
Functions

Clock driver implementation for the TI cc2538. More...

#include "contiki.h"
#include "cc2538_cm3.h"
#include "reg.h"
#include "cpu.h"
#include "dev/gptimer.h"
#include "dev/sys-ctrl.h"
#include "sys/energest.h"
#include "sys/etimer.h"
#include "sys/rtimer.h"
#include <stdint.h>

Go to the source code of this file.

Functions

void clock_init (void)
 Arch-specific implementation of clock_init for the cc2538. More...
 
clock_time_t clock_time (void)
 Get the current clock time. More...
 
void clock_set_seconds (unsigned long sec)
 Set the value of the platform seconds. 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 dt)
 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.
 
static void update_ticks (void)
 Update the software clock ticks and seconds. More...
 
void clock_adjust (void)
 Adjust the clock following missed SysTick ISRs. More...
 
void clock_isr (void)
 The clock Interrupt Service Routine. More...
 

Detailed Description

Clock driver implementation for the TI cc2538.

Definition in file clock.c.