This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 24eb868  hw/mcu/stm: Fix incorrect definition of os_bsp_uart1_cfg
24eb868 is described below

commit 24eb8682be07997ff26e545ca21b4e847a4338ca
Author: Will San Filippo <[email protected]>
AuthorDate: Thu Feb 27 00:14:51 2020 -0800

    hw/mcu/stm: Fix incorrect definition of os_bsp_uart1_cfg
    
    Needed to make it extern instead of defining it here.
---
 hw/mcu/stm/stm32_common/src/stm32_periph.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/mcu/stm/stm32_common/src/stm32_periph.c 
b/hw/mcu/stm/stm32_common/src/stm32_periph.c
index ab075af..756eaec 100644
--- a/hw/mcu/stm/stm32_common/src/stm32_periph.c
+++ b/hw/mcu/stm/stm32_common/src/stm32_periph.c
@@ -86,7 +86,7 @@ extern const struct stm32_uart_cfg os_bsp_uart0_cfg;
 #endif
 #if MYNEWT_VAL(UART_1)
 static struct uart_dev os_bsp_uart1;
-static const struct stm32_uart_cfg os_bsp_uart1_cfg;
+extern const struct stm32_uart_cfg os_bsp_uart1_cfg;
 #endif
 
 #if MYNEWT_VAL(ADC_0)

Reply via email to