24#define SET_COMPARE(compare, value) compare = (COMPARE_TYPE)(value)
26#if(defined(CORE_TEENSY) || defined(CORE_STM32))
27 #define TACHO_PULSE_LOW() (digitalWrite(pinTachOut, LOW))
28 #define TACHO_PULSE_HIGH() (digitalWrite(pinTachOut, HIGH))
30 #define TACHO_PULSE_HIGH() (*tach_pin_port |= (tach_pin_mask))
31 #define TACHO_PULSE_LOW() (*tach_pin_port &= ~(tach_pin_mask))
38#define TACHO_SWEEP_TIME_MS 1500
39#define TACHO_SWEEP_RAMP_MS (TACHO_SWEEP_TIME_MS * 2 / 3)
40#define MS_PER_SEC 1000
44#if defined (CORE_TEENSY)
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:173
volatile TachoOutputStatus tachoOutputFlag
Definition timers.cpp:35
volatile uint16_t tachoSweepIncr
Definition timers.cpp:36
void initialiseTimers(void)
Definition timers.cpp:45
TachoOutputStatus
Definition timers.h:33
@ ACTIVE
Definition timers.h:33
@ READY
Definition timers.h:33
@ TACHO_INACTIVE
Definition timers.h:33
volatile unsigned int dwellLimit_uS
Definition timers.cpp:32
void oneMSInterval(void)
Definition timers.cpp:65