Contiki 3.x
Functions
clock.c File Reference

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

#include "contiki.h"
#include "systick.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...
 
CCIF 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...
 
CCIF 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 len)
 Arch-specific implementation of clock_delay_usec for the cc2538. More...
 
void clock_delay (unsigned int i)
 Obsolete delay function but we implement it here since some code still uses it.
 
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.