altos: Allow STM DMA channels to be reserved for one use
authorKeith Packard <keithp@keithp.com>
Mon, 9 Apr 2012 07:05:18 +0000 (00:05 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 9 Apr 2012 07:05:18 +0000 (00:05 -0700)
commit059f09dbca4703c25b42389b54c6510331c39485
tree2221695d0bd96527a162be7e4b2520811f2c25ab
parentf7cfbbce2b94b5ac0094a0e34e1766fe1ceb12c8
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>
src/stm/ao_adc_stm.c
src/stm/ao_arch_funcs.h
src/stm/ao_dma_stm.c