Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sarkies <ksarkies@NewBennie.(none)>2013-04-26 06:42:03 +0400
committerKen Sarkies <ksarkies@NewBennie.(none)>2013-04-26 06:42:03 +0400
commitcbb4756440fe60b09dd1e19e06178495bf9205fb (patch)
treee16ecc4f855808eb514ea1043d2ef5451e82b1d0 /include/libopencm3/stm32/common/dma_common_f24.h
parent113e5c22e6390ba072148315e83a5faa5ff7ce86 (diff)
As requested (6 Feb 2013) change DMA interrupt flag names
in STM32/common, for dma_common_f24, to match those used in dma_common_f13. Examples compile OK
Diffstat (limited to 'include/libopencm3/stm32/common/dma_common_f24.h')
-rw-r--r--include/libopencm3/stm32/common/dma_common_f24.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libopencm3/stm32/common/dma_common_f24.h b/include/libopencm3/stm32/common/dma_common_f24.h
index c8aab3ea..011c88d6 100644
--- a/include/libopencm3/stm32/common/dma_common_f24.h
+++ b/include/libopencm3/stm32/common/dma_common_f24.h
@@ -250,20 +250,20 @@ being at the same relative location */
@{*/
/** Transfer Complete Interrupt Flag */
-#define DMA_ISR_TCIF (1 << 5)
+#define DMA_TCIF (1 << 5)
/** Half Transfer Interrupt Flag */
-#define DMA_ISR_HTIF (1 << 4)
+#define DMA_HTIF (1 << 4)
/** Transfer Error Interrupt Flag */
-#define DMA_ISR_TEIF (1 << 3)
+#define DMA_TEIF (1 << 3)
/** Direct Mode Error Interrupt Flag */
-#define DMA_ISR_DMEIF (1 << 2)
+#define DMA_DMEIF (1 << 2)
/** FIFO Error Interrupt Flag */
-#define DMA_ISR_FEIF (1 << 0)
+#define DMA_FEIF (1 << 0)
/**@}*/
/* Offset within interrupt status register to start of stream interrupt flag field */
#define DMA_ISR_OFFSET(stream) (6*(stream & 0x01)+16*((stream & 0x02) >> 1))
-#define DMA_ISR_FLAGS (DMA_ISR_TCIF | DMA_ISR_HTIF | DMA_ISR_TEIF | DMA_ISR_DMEIF | DMA_ISR_FEIF)
+#define DMA_ISR_FLAGS (DMA_TCIF | DMA_HTIF | DMA_TEIF | DMA_DMEIF | DMA_FEIF)
#define DMA_ISR_MASK(stream) DMA_ISR_FLAGS << DMA_ISR_OFFSET(stream)
/* --- DMA_LISR values ----------------------------------------------------- */