Contiki 2.6

clock.c File Reference

Implementation of the clock functions for the cc243x. More...

#include "sys/clock.h"
#include "sys/etimer.h"
#include "cc2430_sfr.h"
#include "sys/energest.h"

Go to the source code of this file.

Functions

void clock_delay_usec (uint16_t len)
 Each iteration is ~1.0xy usec, so this function delays for roughly len usec.
void clock_wait (clock_time_t i)
 Wait for a multiple of ~8 ms (a tick)
CCIF clock_time_t clock_time (void)
 Get the current clock time.
CCIF unsigned long clock_seconds (void)
 Get the current value of the platform seconds.
void clock_init (void)
 Initialize the clock library.

Detailed Description

Implementation of the clock functions for the cc243x.

Author:
Zach Shelby (zach@sensinode.com) - original George Oikonomou - <oikonomou@users.sourceforge.net>

Definition in file clock.c.