projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm32f103-nucleo: Drive a screen too
[fw/altos]
/
src
/
stmf0
/
ao_dma_stm.c
diff --git
a/src/stmf0/ao_dma_stm.c
b/src/stmf0/ao_dma_stm.c
index f3fa13b4f5c11557d8c817565529db9cc7024188..ef551786d62b8d9073a517065a30a81370099f80 100644
(file)
--- a/
src/stmf0/ao_dma_stm.c
+++ b/
src/stmf0/ao_dma_stm.c
@@
-111,10
+111,10
@@
ao_dma_start(uint8_t index)
void
ao_dma_done_transfer(uint8_t index)
{
void
ao_dma_done_transfer(uint8_t index)
{
- stm_dma.channel[index].ccr &= ~(1 << STM_DMA_CCR_EN);
+ stm_dma.channel[index].ccr &= ~(1
UL
<< STM_DMA_CCR_EN);
ao_arch_critical(
if (--ao_dma_active == 0)
ao_arch_critical(
if (--ao_dma_active == 0)
- stm_rcc.ahbenr &= ~(1 << STM_RCC_AHBENR_DMAEN);
+ stm_rcc.ahbenr &= ~(1
UL
<< STM_RCC_AHBENR_DMAEN);
);
if (ao_dma_allocated[index])
ao_dma_mutex[index] = 0;
);
if (ao_dma_allocated[index])
ao_dma_mutex[index] = 0;
@@
-125,7
+125,7
@@
ao_dma_done_transfer(uint8_t index)
void
ao_dma_abort(uint8_t index)
{
void
ao_dma_abort(uint8_t index)
{
- stm_dma.channel[index].ccr &= ~(1 << STM_DMA_CCR_EN);
+ stm_dma.channel[index].ccr &= ~(1
UL
<< STM_DMA_CCR_EN);
ao_wakeup(&ao_dma_done[index]);
}
ao_wakeup(&ao_dma_done[index]);
}