aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f1/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stm32/f1/dma.c')
-rw-r--r--lib/stm32/f1/dma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stm32/f1/dma.c b/lib/stm32/f1/dma.c
index fa7fb72..1f06c11 100644
--- a/lib/stm32/f1/dma.c
+++ b/lib/stm32/f1/dma.c
@@ -433,5 +433,10 @@ void dma_set_number_of_data(u32 dma, u8 channel, u16 number)
{
DMA_CNDTR(dma, channel) = number;
}
+
+void dma_clear_flag(u32 dma, u32 flag)
+{
+ DMA_ISR(dma) &= ~flag;
+}
/**@}*/