aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/usart.c5
-rw-r--r--libmaple/usart.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/libmaple/usart.c b/libmaple/usart.c
index fbd4d70..e6a6b90 100644
--- a/libmaple/usart.c
+++ b/libmaple/usart.c
@@ -45,6 +45,7 @@ static usart_dev usart1 = {
.clk_id = RCC_USART1,
.irq_num = NVIC_USART1
};
+/** USART1 device */
usart_dev *USART1 = &usart1;
static ring_buffer usart2_rb;
@@ -55,6 +56,7 @@ static usart_dev usart2 = {
.clk_id = RCC_USART2,
.irq_num = NVIC_USART2
};
+/** USART2 device */
usart_dev *USART2 = &usart2;
static ring_buffer usart3_rb;
@@ -65,6 +67,7 @@ static usart_dev usart3 = {
.clk_id = RCC_USART3,
.irq_num = NVIC_USART3
};
+/** USART3 device */
usart_dev *USART3 = &usart3;
#ifdef STM32_HIGH_DENSITY
@@ -76,6 +79,7 @@ static usart_dev uart4 = {
.clk_id = RCC_UART4,
.irq_num = NVIC_UART4
};
+/** UART4 device */
usart_dev *UART4 = &uart4;
static ring_buffer uart5_rb;
@@ -86,6 +90,7 @@ static usart_dev uart5 = {
.clk_id = RCC_UART5,
.irq_num = NVIC_UART5
};
+/** UART5 device */
usart_dev *UART5 = &uart5;
#endif
diff --git a/libmaple/usart.h b/libmaple/usart.h
index 0743c53..60ed0ac 100644
--- a/libmaple/usart.h
+++ b/libmaple/usart.h
@@ -240,16 +240,11 @@ typedef struct usart_dev {
nvic_irq_num irq_num;
} usart_dev;
-/** USART1 device */
extern usart_dev *USART1;
-/** USART2 device */
extern usart_dev *USART2;
-/** USART3 device */
extern usart_dev *USART3;
#ifdef STM32_HIGH_DENSITY
-/** UART4 device */
extern usart_dev *UART4;
-/** UART5 device */
extern usart_dev *UART5;
#endif