#include "wiring_private.h"
Go to the source code of this file.
Macros | |
| #define | FRACT_INC ((MICROSECONDS_PER_TIMER0_OVERFLOW % 1000) >> 3) |
| #define | FRACT_MAX (1000 >> 3) |
| #define | MICROSECONDS_PER_TIMER0_OVERFLOW (clockCyclesToMicroseconds(64 * 256)) |
| #define | MILLIS_INC (MICROSECONDS_PER_TIMER0_OVERFLOW / 1000) |
Functions | |
| void | delay (unsigned long ms) |
| void | delayMicroseconds (unsigned int us) |
| if (f >=FRACT_MAX) | |
| void | init () |
| unsigned long | micros () |
| unsigned long | millis () |
Variables | |
| unsigned char | f = timer0_fract |
| m = MILLIS_INC | |
| static unsigned char | timer0_fract = 0 |
| volatile unsigned long | timer0_millis = 0 |
| volatile unsigned long | timer0_overflow_count = 0 |
| #define FRACT_INC ((MICROSECONDS_PER_TIMER0_OVERFLOW % 1000) >> 3) |
| #define MICROSECONDS_PER_TIMER0_OVERFLOW (clockCyclesToMicroseconds(64 * 256)) |
| #define MILLIS_INC (MICROSECONDS_PER_TIMER0_OVERFLOW / 1000) |
| m = MILLIS_INC |