diff options
| author | Keith Packard <keithp@keithp.com> | 2012-04-07 18:53:12 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-04-07 18:53:12 -0700 |
| commit | 5e41d1e03680af9806c599aad80b9b64dd719f9b (patch) | |
| tree | 2bddc8ba34a3a1158f9fdec5a556414a4049788a /src/stm/ao_arch.h | |
| parent | fa96ee3db9b57cc2a88e9edd74bb9efcc228ccf3 (diff) | |
altos: Add support for STM ADC
DMA-based driver for the STM analog to digital converter.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch.h')
| -rw-r--r-- | src/stm/ao_arch.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h index 188b8996..ce3a22e2 100644 --- a/src/stm/ao_arch.h +++ b/src/stm/ao_arch.h @@ -145,13 +145,6 @@ extern const uint16_t ao_serial_number; #define ao_arch_critical(b) do { cli(); do { b } while (0); sei(); } while (0) -#define AO_ARM_NUM_ADC 12 - -struct ao_adc { - uint16_t tick; /* tick when the sample was read */ - uint16_t adc[AO_ARM_NUM_ADC]; /* samples */ -}; - /* * For now, we're running at a weird frequency */ @@ -203,5 +196,8 @@ ao_serial3_set_speed(uint8_t speed); extern uint32_t ao_radio_cal; +void +ao_adc_init(); + #endif /* _AO_ARCH_H_ */ |
