aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple')
-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