Contiki 2.5
Macros | Functions
clock.c File Reference

    Implementation of the clock functions for the 8051 CPU
More...

#include <stdio.h>
#include "sys/clock.h"
#include "sys/etimer.h"
#include "cc2430_sfr.h"

Go to the source code of this file.

Macros

#define TICK_VAL   (32768/128)
 TODO: Implement clock_fine() and clock_fine_max_ticks() using another timer?
 

Functions

void clock_delay (unsigned int len)
 One delay is about 0.6 us, so this function delays for len * 0.6 us. More...
 
void clock_wait (int i)
 Wait for a multiple of ~8 ms (a tick)
 
clock_time_t clock_time (void)
 Get the current clock time. More...
 
void clock_init (void)
 Initialize the clock library. More...
 

Detailed Description

    Implementation of the clock functions for the 8051 CPU
Author
Zach Shelby (zach@.nosp@m.sens.nosp@m.inode.nosp@m..com)

Definition in file clock.c.