diff options
author | Keith Packard <keithp@keithp.com> | 2015-01-27 20:41:15 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-01-27 20:41:15 -0800 |
commit | 8ca1f234586225caea1040bc229b63491dadc1cb (patch) | |
tree | 2e0e1685fda6f3239d05885c6e6a4fa80efd4491 /src/kernel | |
parent | 3749426af1e900a1b3354922fdd7e8b3bfa38084 (diff) |
altos/stmf0: Re-implement fast ADC code for stmf0
This creates a ring buffer for ADC data so that ADC fetching can run
in parallel with other activities.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/ao.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h index 16d600aa..59a469ae 100644 --- a/src/kernel/ao.h +++ b/src/kernel/ao.h @@ -72,6 +72,7 @@ typedef AO_PORT_TYPE ao_port_t; #define AO_PANIC_BUFIO 15 /* Mis-using bufio API */ #define AO_PANIC_EXTI 16 /* Mis-using exti API */ #define AO_PANIC_FAST_TIMER 17 /* Mis-using fast timer API */ +#define AO_PANIC_ADC 18 /* Mis-using ADC interface */ #define AO_PANIC_SELF_TEST_CC1120 0x40 | 1 /* Self test failure */ #define AO_PANIC_SELF_TEST_HMC5883 0x40 | 2 /* Self test failure */ #define AO_PANIC_SELF_TEST_MPU6000 0x40 | 3 /* Self test failure */ |