Speeduino
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
timers.h File Reference
#include "globals.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SET_COMPARE(compare, value)   compare = (COMPARE_TYPE)(value)
 
#define TACHO_PULSE_HIGH()   *tach_pin_port |= (tach_pin_mask)
 
#define TACHO_PULSE_LOW()   *tach_pin_port &= ~(tach_pin_mask)
 
#define TACHO_SWEEP_TIME_MS   1500
 
#define TACHO_SWEEP_RAMP_MS   (TACHO_SWEEP_TIME_MS * 2 / 3)
 
#define MS_PER_SEC   1000
 

Enumerations

enum  TachoOutputStatus { TACHO_INACTIVE , READY , ACTIVE }
 

Functions

void initialiseTimers (void)
 

Variables

volatile TachoOutputStatus tachoOutputFlag
 
volatile bool tachoSweepEnabled
 
volatile uint16_t tachoSweepIncr
 
volatile unsigned int dwellLimit_uS
 

Macro Definition Documentation

◆ MS_PER_SEC

#define MS_PER_SEC   1000

◆ SET_COMPARE

#define SET_COMPARE (   compare,
  value 
)    compare = (COMPARE_TYPE)(value)

◆ TACHO_PULSE_HIGH

#define TACHO_PULSE_HIGH ( )    *tach_pin_port |= (tach_pin_mask)

◆ TACHO_PULSE_LOW

#define TACHO_PULSE_LOW ( )    *tach_pin_port &= ~(tach_pin_mask)

◆ TACHO_SWEEP_RAMP_MS

#define TACHO_SWEEP_RAMP_MS   (TACHO_SWEEP_TIME_MS * 2 / 3)

◆ TACHO_SWEEP_TIME_MS

#define TACHO_SWEEP_TIME_MS   1500

Enumeration Type Documentation

◆ TachoOutputStatus

Enumerator
TACHO_INACTIVE 
READY 
ACTIVE 

Function Documentation

◆ initialiseTimers()

void initialiseTimers ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ dwellLimit_uS

volatile unsigned int dwellLimit_uS
extern

◆ tachoOutputFlag

volatile TachoOutputStatus tachoOutputFlag
extern

◆ tachoSweepEnabled

volatile bool tachoSweepEnabled
extern

◆ tachoSweepIncr

volatile uint16_t tachoSweepIncr
extern