aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-05-20 15:21:40 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-05-20 15:21:40 -0400
commit9eccdc5df18dabefd6fae4122fb053dcf2bf8f04 (patch)
treea68b8197c44446a306a75e26b0997048ca3d62eb /libmaple
parent19d526ec111f6e5da3401ffb40bcd5d915992494 (diff)
downloadlibrambutan-9eccdc5df18dabefd6fae4122fb053dcf2bf8f04.tar.gz
librambutan-9eccdc5df18dabefd6fae4122fb053dcf2bf8f04.zip
dma: Doxygen
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/dma.c2
-rw-r--r--libmaple/dma.h7
2 files changed, 5 insertions, 4 deletions
diff --git a/libmaple/dma.c b/libmaple/dma.c
index 57baa13..ff978de 100644
--- a/libmaple/dma.c
+++ b/libmaple/dma.c
@@ -48,6 +48,7 @@ static dma_dev dma1 = {
{ .handler = NULL, .irq_line = NVIC_DMA_CH6 },
{ .handler = NULL, .irq_line = NVIC_DMA_CH7 }}
};
+/** DMA1 device */
dma_dev *DMA1 = &dma1;
#ifdef STM32_HIGH_DENSITY
@@ -60,6 +61,7 @@ static dma_dev dma2 = {
{ .handler = NULL, .irq_line = NVIC_DMA2_CH_4_5 },
{ .handler = NULL, .irq_line = NVIC_DMA2_CH_4_5 }} /* !@#$ */
};
+/** DMA2 device */
dma_dev *DMA2 = &dma2;
#endif
diff --git a/libmaple/dma.h b/libmaple/dma.h
index 7c380d0..e724e98 100644
--- a/libmaple/dma.h
+++ b/libmaple/dma.h
@@ -269,8 +269,9 @@ typedef struct dma_reg_map {
/** Encapsulates state related to a DMA channel interrupt. */
typedef struct dma_handler_config {
- void (*handler)(void);
- nvic_irq_num irq_line;
+ void (*handler)(void); /**< User-specified channel interrupt
+ handler */
+ nvic_irq_num irq_line; /**< Channel's NVIC interrupt number */
} dma_handler_config;
/** DMA device type */
@@ -280,10 +281,8 @@ typedef struct dma_dev {
dma_handler_config handlers[]; /**< IRQ handlers and NVIC numbers. */
} dma_dev;
-/** DMA1 device */
extern dma_dev *DMA1;
#ifdef STM32_HIGH_DENSITY
-/** DMA2 device */
extern dma_dev *DMA2;
#endif