Speeduino
|
#include "globals.h"
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 |
#define MS_PER_SEC 1000 |
#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_RAMP_MS (TACHO_SWEEP_TIME_MS * 2 / 3) |
#define TACHO_SWEEP_TIME_MS 1500 |
|
extern |