diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-13 12:52:16 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-15 17:41:37 -0400 |
commit | 0da5a577296ff3388feddb12bc86c43b61f54066 (patch) | |
tree | 5c28e100d1645b2998be27e74a831b1be318a682 /libmaple/stm32f1/include/series | |
parent | e51c60e03661cc924420eba757e15044016b7c1f (diff) | |
download | librambutan-0da5a577296ff3388feddb12bc86c43b61f54066.tar.gz librambutan-0da5a577296ff3388feddb12bc86c43b61f54066.zip |
Implement DMA tube API on STM32F1.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1/include/series')
-rw-r--r-- | libmaple/stm32f1/include/series/dma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmaple/stm32f1/include/series/dma.h b/libmaple/stm32f1/include/series/dma.h index 6da3246..3b19e2b 100644 --- a/libmaple/stm32f1/include/series/dma.h +++ b/libmaple/stm32f1/include/series/dma.h @@ -293,6 +293,8 @@ typedef struct dma_tube_reg_map { #define DMA_CCR_PINC (1U << DMA_CCR_PINC_BIT) #define DMA_CCR_CIRC (1U << DMA_CCR_CIRC_BIT) #define DMA_CCR_DIR (1U << DMA_CCR_DIR_BIT) +#define DMA_CCR_DIR_FROM_PER (0U << DMA_CCR_DIR_BIT) +#define DMA_CCR_DIR_FROM_MEM (1U << DMA_CCR_DIR_BIT) #define DMA_CCR_TEIE (1U << DMA_CCR_TEIE_BIT) #define DMA_CCR_HTIE (1U << DMA_CCR_HTIE_BIT) #define DMA_CCR_TCIE (1U << DMA_CCR_TCIE_BIT) |