|
Contiki-Inga 3.x
|
This file contains AVR-specific code to implement the Contiki core clock functions. More...
#include "sys/clock.h"#include "dev/clock-avr.h"#include "sys/etimer.h"#include <avr/io.h>#include <avr/interrupt.h>Go to the source code of this file.
Functions | |
| void | clock_init (void) |
| Start the clock by enabling the timer comparison interrupts. More... | |
| clock_time_t | clock_time (void) |
| Return the tick counter. More... | |
| unsigned long | clock_seconds (void) |
| Return seconds, default is time since startup. More... | |
| void | clock_set_seconds (unsigned long sec) |
| Set seconds, e.g. More... | |
| void | clock_wait (clock_time_t t) |
| Wait for a number of clock ticks. More... | |
| void | clock_delay_usec (uint16_t howlong) |
| Delay a given number of microseconds. More... | |
| void | clock_delay_msec (uint16_t howlong) |
| Delay up to 65535 milliseconds. More... | |
| void | clock_adjust_ticks (clock_time_t howmany) |
| Adjust the system current clock time. More... | |
| void | AVR_OUTPUT_COMPARE_INT (void) |
| ISR for the TIMER0 or TIMER2 interrupt as defined in clock-avr.h for the particular MCU. | |
Variables | |
| volatile unsigned long | seconds |
| These routines define the AVR-specific calls declared in /core/sys/clock.h CLOCK_SECOND is the number of ticks per second. More... | |
This file contains AVR-specific code to implement the Contiki core clock functions.
Definition in file clock.c.LOCAL.2341.c.
1.8.3.1