diff options
author | Keith Packard <keithp@keithp.com> | 2012-05-07 21:50:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-05-07 21:50:26 -0700 |
commit | af949c67eeb9dc310b1430d3435d241adccfc0a9 (patch) | |
tree | b7938515ba32ca8ad5f6b7656ed38b6193991b0e /src/stm/ao_adc_stm.c | |
parent | dd7699cf8daded17ac41abf5c5170cfb599b6ff5 (diff) |
altos: stm: pass DMA buffer index to DMA completion callback
This lets the user know which DMA has finished.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_adc_stm.c')
-rw-r--r-- | src/stm/ao_adc_stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_adc_stm.c b/src/stm/ao_adc_stm.c index 729551c4..a2569908 100644 --- a/src/stm/ao_adc_stm.c +++ b/src/stm/ao_adc_stm.c @@ -41,7 +41,7 @@ static uint8_t ao_adc_ready; * * Mark time in ring, shut down DMA engine */ -static void ao_adc_done(void) +static void ao_adc_done(int index) { ao_adc_ring[ao_adc_head].tick = ao_time(); ao_adc_head = ao_adc_ring_next(ao_adc_head); |