projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0dec7d0
)
altos/stm: use 0xff for dma mutex value for allocated mutexes
author
Keith Packard
<keithp@keithp.com>
Wed, 29 Jun 2016 00:12:48 +0000
(17:12 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000
(19:17 -0700)
DMA channels which are 'allocated' can't be shared. Instead of using
the value '1' in the related 'mutex', use 0xff which won't match any task.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_dma_stm.c
patch
|
blob
|
history
diff --git
a/src/stm/ao_dma_stm.c
b/src/stm/ao_dma_stm.c
index 298a15b5ce58bdd4d67fbe69293c96d22e4dcbc3..93b7fb47e1da815545d843cc2ae4838e65759264 100644
(file)
--- a/
src/stm/ao_dma_stm.c
+++ b/
src/stm/ao_dma_stm.c
@@
-64,7
+64,7
@@
ao_dma_set_transfer(uint8_t index,
if (ao_dma_allocated[index]) {
if (ao_dma_mutex[index])
ao_panic(AO_PANIC_DMA);
- ao_dma_mutex[index] =
1
;
+ ao_dma_mutex[index] =
0xff
;
} else
ao_mutex_get(&ao_dma_mutex[index]);
ao_arch_critical(