Macros | Functions | Variables
wiring.c File Reference
#include "wiring_private.h"
Include dependency graph for wiring.c:

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
 

Macro Definition Documentation

#define FRACT_INC   ((MICROSECONDS_PER_TIMER0_OVERFLOW % 1000) >> 3)

Definition at line 35 of file wiring.c.

#define FRACT_MAX   (1000 >> 3)

Definition at line 36 of file wiring.c.

#define MICROSECONDS_PER_TIMER0_OVERFLOW   (clockCyclesToMicroseconds(64 * 256))

Definition at line 27 of file wiring.c.

#define MILLIS_INC   (MICROSECONDS_PER_TIMER0_OVERFLOW / 1000)

Definition at line 30 of file wiring.c.

Function Documentation

void delay ( unsigned long  ms)

Definition at line 106 of file wiring.c.

void delayMicroseconds ( unsigned int  us)

Definition at line 120 of file wiring.c.

if ( f >=  FRACT_MAX)

Definition at line 55 of file wiring.c.

void init ( void  )

Definition at line 241 of file wiring.c.

unsigned long micros ( void  )

Definition at line 79 of file wiring.c.

unsigned long millis ( void  )

Definition at line 65 of file wiring.c.

Variable Documentation

Definition at line 51 of file wiring.c.

Definition at line 53 of file wiring.c.

timer0_fract = 0
static

Definition at line 40 of file wiring.c.

timer0_millis = 0

Definition at line 39 of file wiring.c.

timer0_overflow_count = 0

Definition at line 38 of file wiring.c.



arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03