SWARM-Bot Firmware
v1.0
Mobile robot OS - Embedded C/C++
|
Header file for timer0.c. More...
#include <__swarm_wold__.h>
Go to the source code of this file.
Functions | |
void | _timer0_init (void) |
void | _timer0_init_prescaler (uint16_t prescaler) |
unsigned long | _micros0 (void) |
unsigned long | _millis0 (void) |
Header file for timer0.c.
$RCSfile$
Definition in file __timer0__.h.
unsigned long _micros0 | ( | void | ) |
Returns the microseconds passed since timer initialize
Referenced by _dead_reckon().
unsigned long _millis0 | ( | void | ) |
void _timer0_init | ( | void | ) |
Initialize Timer/Counter 0 with clock prescaler of 1024 (244 Hz overflow at 16 MHz)
Referenced by board_init().
void _timer0_init_prescaler | ( | uint16_t | prescaler | ) |
Initialize Timer/Counter 0 with costume prescaler (see the datasheet)
[in] | prescaler | prescaler 1,2,4,8,255,1024 |