diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-09 00:05:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-09 00:05:18 -0700 |
commit | 059f09dbca4703c25b42389b54c6510331c39485 (patch) | |
tree | 2221695d0bd96527a162be7e4b2520811f2c25ab /src/stm/ao_arch_funcs.h | |
parent | f7cfbbce2b94b5ac0094a0e34e1766fe1ceb12c8 (diff) |
altos: Allow STM DMA channels to be reserved for one use
This allows a single user of a DMA channel to reserve it for use
without needing to lock the mutex; this is required for DMA from the
ADC to work on megametrum as it wants to start DMA from an interrupt
handler, which cannot block on a mutex.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch_funcs.h')
-rw-r--r-- | src/stm/ao_arch_funcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index a42fe10f..7dc576d1 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -62,6 +62,9 @@ void ao_dma_abort(uint8_t index); void +ao_dma_alloc(uint8_t index); + +void ao_dma_init(void); #endif /* _AO_ARCH_FUNCS_H_ */ |