Contiki 2.6

clock.c File Reference

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

#include "sfr-bits.h"
#include "sys/clock.h"
#include "sys/etimer.h"
#include "cc253x.h"
#include "sys/energest.h"

Go to the source code of this file.

Functions

__xdata __at (0x0000)
 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 cc253x.

Ported over from the cc243x original.

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

Definition in file clock.c.