diff options
| author | Keith Packard <keithp@keithp.com> | 2013-05-26 22:38:56 -0600 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-05-26 22:38:56 -0600 |
| commit | 3e8b72a9dc5b6c3a0f6132dc2dec04f8c08a1deb (patch) | |
| tree | 2610b6b7c879a05a3c70a29e5ce5d28d641ba30b /src/telemega-v0.1/ao_pins.h | |
| parent | 4bc1f3390b9ebbe07af4bc0f0a1c0915193ddf42 (diff) | |
altos: Add pyro operations to regular ignite commands
Instead of having separate commands, just mix the two sets together.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telemega-v0.1/ao_pins.h')
| -rw-r--r-- | src/telemega-v0.1/ao_pins.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/telemega-v0.1/ao_pins.h b/src/telemega-v0.1/ao_pins.h index 4c645871..78e887c3 100644 --- a/src/telemega-v0.1/ao_pins.h +++ b/src/telemega-v0.1/ao_pins.h @@ -146,6 +146,8 @@ /* Number of general purpose pyro channels available */ #define AO_PYRO_NUM 4 +#define AO_SENSE_PYRO(a,p) ((a)->adc.sense[(p) + 2]) + #define AO_IGNITER_SET_DROGUE(v) stm_gpio_set(AO_IGNITER_DROGUE_PORT, AO_IGNITER_DROGUE_PIN, v) #define AO_IGNITER_SET_MAIN(v) stm_gpio_set(AO_IGNITER_MAIN_PORT, AO_IGNITER_MAIN_PIN, v) |
