aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-05-19 16:12:55 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-05-19 18:45:45 -0400
commit2611f59cbce88ff4955a7f5d4ee6201472e6cd27 (patch)
tree3fff588f89ffebd58df04e54b3b1cee9744605f4
parente1f9cb9d9294fa75f1711c8c4de2fdd60e8b1f79 (diff)
downloadlibrambutan-2611f59cbce88ff4955a7f5d4ee6201472e6cd27.tar.gz
librambutan-2611f59cbce88ff4955a7f5d4ee6201472e6cd27.zip
spi: Comment fixups
Moving SPIn Doxygen comments to point of definition in keeping with libmaple conventions.
-rw-r--r--libmaple/spi.c3
-rw-r--r--libmaple/spi.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/spi.c b/libmaple/spi.c
index e58ae91..1c68529 100644
--- a/libmaple/spi.c
+++ b/libmaple/spi.c
@@ -45,6 +45,7 @@ static spi_dev spi1 = {
.clk_id = RCC_SPI1,
.irq_num = NVIC_SPI1,
};
+/** SPI device 1 */
spi_dev *SPI1 = &spi1;
static spi_dev spi2 = {
@@ -52,6 +53,7 @@ static spi_dev spi2 = {
.clk_id = RCC_SPI2,
.irq_num = NVIC_SPI2,
};
+/** SPI device 2 */
spi_dev *SPI2 = &spi2;
#ifdef STM32_HIGH_DENSITY
@@ -60,6 +62,7 @@ static spi_dev spi3 = {
.clk_id = RCC_SPI3,
.irq_num = NVIC_SPI3,
};
+/** SPI device 3 */
spi_dev *SPI3 = &spi3;
#endif
diff --git a/libmaple/spi.h b/libmaple/spi.h
index 1aabfcc..685a034 100644
--- a/libmaple/spi.h
+++ b/libmaple/spi.h
@@ -207,12 +207,9 @@ typedef struct spi_dev {
nvic_irq_num irq_num;
} spi_dev;
-/** SPI device 1 */
extern spi_dev *SPI1;
-/** SPI device 2 */
extern spi_dev *SPI2;
#ifdef STM32_HIGH_DENSITY
-/** SPI device 3 */
extern spi_dev *SPI3;
#endif