diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h index ce9607d395db11fc95e57742a1a11d4cfb41e038..3615ebab52e0c0cb422ac59dfe71c513d18cc308 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_ADC1 #ifndef ADC1_CONFIG #define ADC1_CONFIG \ @@ -35,4 +39,8 @@ #endif /* ADC1_CONFIG */ #endif /* BSP_USING_ADC1 */ +#ifdef __cplusplus +} +#endif + #endif /* __ADC_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h index 1c44c20531fba6c7b3a8507681d57b1a80a237c9..9c7c2225598b441542a72137b7fd905a870a64a9 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* DMA1 channel1 */ /* DMA1 channel2-3 DMA2 channel1-2 */ @@ -34,4 +38,8 @@ #endif /* DMA1 channel4-7 DMA2 channel3-5 */ +#ifdef __cplusplus +} +#endif + #endif /* __DMA_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h index 26b1bd83536852bb96ed70ab1ddc70d4b1a18a57..9ade01dfa595a1b1fafcb8e1b8d69ac4287c6555 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_PWM2 #ifndef PWM2_CONFIG #define PWM2_CONFIG \ @@ -57,4 +61,8 @@ #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __PWM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h index 0db5b039962d1b8c83695daee876b593cba08e85..6f218780c841325c31e3effc871847967c3ea7fd 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SPI1 #define SPI1_BUS_CONFIG \ { \ @@ -30,6 +34,10 @@ #define SPI1_DMA_TX_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler #endif +#ifdef __cplusplus +} +#endif + #endif /*__SPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h index 59a1c8eec79fe284d3f1816d890a865d68f3e2ec..0bba70cd43f0f680d8f29f04c5121f5f233eb9bf 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef TIM_DEV_INFO_CONFIG #define TIM_DEV_INFO_CONFIG \ { \ @@ -56,4 +60,8 @@ #endif /* TIM17_CONFIG */ #endif /* BSP_USING_TIM17 */ +#ifdef __cplusplus +} +#endif + #endif /* __TIM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h index 9ef9b2ba6719588d5324509003b8aef7718efeac..04b3be7557ccf502bda7c666b68cafddb9546364 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(BSP_USING_UART1) #ifndef UART1_CONFIG #define UART1_CONFIG \ @@ -57,4 +61,8 @@ #endif /* UART2_DMA_CONFIG */ #endif /* BSP_UART2_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif /* __UART_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h index f9e5e5a2d9e70adc918dad9175ba35abb5e93644..ac0a7ca3733f3b77a7f5c109b8f5ac0da271a36a 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_ADC1 #ifndef ADC1_CONFIG #define ADC1_CONFIG \ @@ -61,4 +65,8 @@ #endif /* ADC3_CONFIG */ #endif /* BSP_USING_ADC3 */ +#ifdef __cplusplus +} +#endif + #endif /* __ADC_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h index 0b6b0550a4c67b5ac96a4941acb0cdd6e0ee6e06..9f4b4c725d072663bcd2980cf63dd545b24b28bf 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* DMA1 channel1 */ /* DMA1 channel2 */ #if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE) @@ -88,5 +92,8 @@ /* DMA2 channel4 */ /* DMA2 channel5 */ +#ifdef __cplusplus +} +#endif #endif /* __DMA_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h index 2474460ccdb0e3a51abc05305aa31e5fbdf2cc58..1a5575de0c7985018b30bbe439546a0ffe688ddc 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_PWM2 #ifndef PWM2_CONFIG #define PWM2_CONFIG \ @@ -57,4 +61,8 @@ #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __PWM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h index 21aedf78b2632ed53cbbcb724219942a1166242c..b68d5ce6bae1618c656710e2cda4d235b18685b2 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h @@ -14,6 +14,10 @@ #include #include "stm32f1xx_hal.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SDIO #define SDIO_BUS_CONFIG \ { \ @@ -28,6 +32,10 @@ #endif +#ifdef __cplusplus +} +#endif + #endif /*__SDIO_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h index b77ce5ef3b85e51f988fa68152488eab09ad4488..c4bbe3708dfcd81d3ed583b1ba001289ee20a15b 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SPI1 #ifndef SPI1_BUS_CONFIG #define SPI1_BUS_CONFIG \ @@ -110,6 +114,10 @@ #endif /* SPI3_RX_DMA_CONFIG */ #endif /* BSP_SPI3_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif /*__SPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h index 75a3e0b84a98b2b91f0f7295e49841eab31fd0d7..1d3b245dc8d585f00d7dd2b6733bfd17cbd52357 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef TIM_DEV_INFO_CONFIG #define TIM_DEV_INFO_CONFIG \ { \ @@ -67,4 +71,8 @@ #endif /* TIM5_CONFIG */ #endif /* BSP_USING_TIM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __TIM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h index bdfafee7443d99d3e07192de5f2e3c276763e4da..24c8ae2a72cc07e33aa4cbdb92ce2eff813df222 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h @@ -15,6 +15,10 @@ #include #include "dma_config.h" +#ifdef __cplusplus +extern "C" { +#endif + #if defined(BSP_USING_UART1) #ifndef UART1_CONFIG #define UART1_CONFIG \ @@ -123,4 +127,8 @@ #endif /* UART5_DMA_CONFIG */ #endif /* BSP_UART5_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h index 478f4b3caf42c71525e2585fb605c23834339ebb..bda1a0648560196512fc5e856b4b0e982114aff9 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_ADC1 #ifndef ADC1_CONFIG #define ADC1_CONFIG \ @@ -76,4 +80,8 @@ #endif /* ADC3_CONFIG */ #endif /* BSP_USING_ADC3 */ +#ifdef __cplusplus +} +#endif + #endif /* __ADC_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h index 9eb55f2b9a3e08207a67e7d012ce33fc4867bad7..83ea331643155dad62afde2869fef77c3f54ad48 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* DMA1 stream0 */ #if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE) #define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler @@ -205,5 +209,9 @@ /* DMA2 stream7 */ +#ifdef __cplusplus +} +#endif + #endif /* __DMA_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h index 2474460ccdb0e3a51abc05305aa31e5fbdf2cc58..1a5575de0c7985018b30bbe439546a0ffe688ddc 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_PWM2 #ifndef PWM2_CONFIG #define PWM2_CONFIG \ @@ -57,4 +61,8 @@ #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __PWM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h index adf20c37c7d8ea86bd090465180ffe5a26cdeec3..a8328b1da436df98ee64ab0d4a1008854a63065c 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h @@ -14,6 +14,10 @@ #include #include "stm32f4xx_hal.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SDIO #define SDIO_BUS_CONFIG \ { \ @@ -30,6 +34,10 @@ #endif +#ifdef __cplusplus +} +#endif + #endif /*__SDIO_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h index 3cd3f69884584d17f9d4e753359ac8c64f8d840f..34b0590eb341ad2380fb74b5f3c60afbf76eab4f 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SPI1 #ifndef SPI1_BUS_CONFIG #define SPI1_BUS_CONFIG \ @@ -184,4 +188,8 @@ #endif /* SPI5_RX_DMA_CONFIG */ #endif /* BSP_SPI5_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif /*__SPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h index 169d07a7a4e1440321172092ddaeb7ca95bb6a5d..cd116d9e19c6a7c76c3092a7b28ce80da4cd5786 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef TIM_DEV_INFO_CONFIG #define TIM_DEV_INFO_CONFIG \ { \ @@ -56,4 +60,8 @@ #endif /* TIM14_CONFIG */ #endif /* BSP_USING_TIM14 */ +#ifdef __cplusplus +} +#endif + #endif /* __TIM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h index 20dca9cee253e9aa01c271f8877794f0290bf0c3..244ba2581a018540712eec3f146b10c68ae6ad14 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(BSP_USING_UART1) #ifndef UART1_CONFIG #define UART1_CONFIG \ @@ -129,4 +133,8 @@ #endif /* UART5_DMA_CONFIG */ #endif /* BSP_UART5_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h index 478f4b3caf42c71525e2585fb605c23834339ebb..bda1a0648560196512fc5e856b4b0e982114aff9 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_ADC1 #ifndef ADC1_CONFIG #define ADC1_CONFIG \ @@ -76,4 +80,8 @@ #endif /* ADC3_CONFIG */ #endif /* BSP_USING_ADC3 */ +#ifdef __cplusplus +} +#endif + #endif /* __ADC_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h index cf0c416311297ab55c9dcd4883516165fc6958ca..5023b20a91cbb675a3c0319d1df452b222c298c1 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* DMA1 stream0 */ #if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE) #define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler @@ -218,4 +222,8 @@ #define QSPI_DMA_IRQ DMA2_Stream7_IRQn #endif +#ifdef __cplusplus +} +#endif + #endif /* __DMA_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h index 2474460ccdb0e3a51abc05305aa31e5fbdf2cc58..1a5575de0c7985018b30bbe439546a0ffe688ddc 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_PWM2 #ifndef PWM2_CONFIG #define PWM2_CONFIG \ @@ -57,4 +61,8 @@ #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __PWM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h index d69ab7aff9ea4bcaad23160cfe9171073856d998..f4477f498b701c51dbb406aa0f0bbdb9a8a90e8f 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_QSPI #ifndef QSPI_BUS_CONFIG #define QSPI_BUS_CONFIG \ @@ -45,4 +49,8 @@ #define QSPI_IRQn QUADSPI_IRQn #define QSPI_IRQHandler QUADSPI_IRQHandler +#ifdef __cplusplus +} +#endif + #endif /* __QSPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h index b2da0ec9f5b3ad50f1be0ca92b51ba5c3de4e301..ae1e4bbf6e6b61daf1537b3b58bed476896017ae 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h @@ -14,6 +14,10 @@ #include #include "stm32f7xx_hal.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SDIO #define SDIO_BUS_CONFIG \ { \ @@ -30,6 +34,10 @@ #endif +#ifdef __cplusplus +} +#endif + #endif /*__SDIO_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h index ac18fcd015fae23c0daa0ccf634de3f267d34a08..86bf38199ecedbc1409962d318ff50cf8fa25120 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SPI1 #ifndef SPI1_BUS_CONFIG #define SPI1_BUS_CONFIG \ @@ -183,4 +187,8 @@ #endif /* SPI5_RX_DMA_CONFIG */ #endif /* BSP_SPI5_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif /*__SPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h index 169d07a7a4e1440321172092ddaeb7ca95bb6a5d..cd116d9e19c6a7c76c3092a7b28ce80da4cd5786 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef TIM_DEV_INFO_CONFIG #define TIM_DEV_INFO_CONFIG \ { \ @@ -56,4 +60,8 @@ #endif /* TIM14_CONFIG */ #endif /* BSP_USING_TIM14 */ +#ifdef __cplusplus +} +#endif + #endif /* __TIM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h index ae343a1621fefa344c1811938e83a5fad938cc99..6d4aa39b92b81e0e6febeece3fb961ab49340dc8 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(BSP_USING_UART1) #ifndef UART1_CONFIG #define UART1_CONFIG \ @@ -129,4 +133,8 @@ #endif /* UART5_DMA_CONFIG */ #endif /* BSP_UART5_RX_USING_DMA */ +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h index d25a5bb8d4b5d948441dee233850b8db0a6e3511..47fe0139b1ffcc8f9874aec16ed6ff829de446f8 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_ADC1 #ifndef ADC1_CONFIG #define ADC1_CONFIG \ @@ -79,4 +83,8 @@ #endif /* ADC3_CONFIG */ #endif /* BSP_USING_ADC3 */ +#ifdef __cplusplus +} +#endif + #endif /* __ADC_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h index 14b0246ca881b573c2335f7428d30a9fd1bce38e..938d291ee96a73b3c96ca38224c3bb58b37f4b02 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h @@ -14,6 +14,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* DMA1 channel1 */ /* DMA1 channel2 */ @@ -124,4 +128,8 @@ #define QSPI_DMA_IRQ DMA2_Channel7_IRQn #endif +#ifdef __cplusplus +} +#endif + #endif /* __DMA_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h index 2474460ccdb0e3a51abc05305aa31e5fbdf2cc58..1a5575de0c7985018b30bbe439546a0ffe688ddc 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_PWM2 #ifndef PWM2_CONFIG #define PWM2_CONFIG \ @@ -57,4 +61,8 @@ #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef __cplusplus +} +#endif + #endif /* __PWM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h index d76ef6dd1d0e57c07e1f016604c0c09879668b16..4714c119f08b9760eb14173659c9936b5ac40a53 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_QSPI #ifndef QSPI_BUS_CONFIG #define QSPI_BUS_CONFIG \ @@ -45,4 +49,8 @@ #define QSPI_IRQn QUADSPI_IRQn #define QSPI_IRQHandler QUADSPI_IRQHandler +#ifdef __cplusplus +} +#endif + #endif /* __QSPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h index 4a595cd9ff7f51e2afb57f09d63aa603621de9d1..c9c248d6d473e14eb2e603386fe64c70641fb3d0 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h @@ -5,7 +5,7 @@ * * Change Logs: * Date Author Notes - * 2018-11-06 SummerGift change to new framework + * 2018-11-06 SummerGift first version */ #ifndef __SPI_CONFIG_H__ @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_SPI1 #ifndef SPI1_BUS_CONFIG #define SPI1_BUS_CONFIG \ @@ -81,4 +85,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif /*__SPI_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h index fe857cc360a824de71dc147540a6d3812c9527af..4df13ca0873f28572844413698af8fe09492beca 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef TIM_DEV_INFO_CONFIG #define TIM_DEV_INFO_CONFIG \ { \ @@ -56,4 +60,8 @@ #endif /* TIM17_CONFIG */ #endif /* BSP_USING_TIM17 */ +#ifdef __cplusplus +} +#endif + #endif /* __TIM_CONFIG_H__ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h b/bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h index 58644894b886b5eb363e5ff4b046e73c6bde9b06..3abb984371597f57b99335bc87e14370bb1ea1ad 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(BSP_USING_UART1) #ifndef UART1_CONFIG #define UART1_CONFIG \ @@ -57,6 +61,10 @@ .dma_irq = UART2_RX_DMA_IRQ, \ } #endif /* UART2_DMA_CONFIG */ -#endif /* BSP_UART2_RX_USING_DMA */ +#endif /* BSP_UART2_RX_USING_DMA */ + +#ifdef __cplusplus +} +#endif #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.h b/bsp/stm32/libraries/HAL_Drivers/drv_common.h index a897c178d3662af1a1bf170773316b5ee349de81..751305eb71dd670bd58a7e7059ffab8749ad5893 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_common.h +++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.h @@ -5,7 +5,7 @@ * * Change Logs: * Date Author Notes - * 2018-11-7 SummerGift change to new framework + * 2018-11-7 SummerGift first version */ #ifndef __DRV_COMMON_H__ @@ -16,6 +16,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + void _Error_Handler(char *s, int num); #ifndef Error_Handler @@ -24,4 +28,8 @@ void _Error_Handler(char *s, int num); #define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU) +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_config.h b/bsp/stm32/libraries/HAL_Drivers/drv_config.h index 214552398ed50d9ed86a5fa959684cb79e8e5201..91f0174e4136b871cc674a52448fd5b8177dbd77 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/drv_config.h @@ -14,6 +14,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(SOC_SERIES_STM32F0) #include "f0/dma_config.h" #include "f0/uart_config.h" @@ -56,4 +60,8 @@ #include "l4/pwm_config.h" #endif +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_dma.h b/bsp/stm32/libraries/HAL_Drivers/drv_dma.h index b56cb1e94115ec38a1829fcb98921c5d7d1bda24..719cf80310970b70ca1c8de3022027acf3d5f74d 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_dma.h +++ b/bsp/stm32/libraries/HAL_Drivers/drv_dma.h @@ -16,6 +16,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32L4) #define DMA_INSTANCE_TYPE DMA_Channel_TypeDef #elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) @@ -36,4 +40,8 @@ struct dma_config { #endif }; +#ifdef __cplusplus +} +#endif + #endif /*__DRV_DMA_H_ */ diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h b/bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h index 954580b688dd76f3c817691ac2bb083f60ee6db2..3a9d5be061dee048694c407c126a325afeea6785 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h +++ b/bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h @@ -16,8 +16,16 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + int stm32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, size_t size); int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size); int stm32_flash_erase(rt_uint32_t addr, size_t size); +#ifdef __cplusplus +} +#endif + #endif /* __DRV_FLASH_H__ */ diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/board.h b/bsp/stm32/libraries/templates/stm32f0xx/board/board.h index 7db811458f98edba82d8b3dc7c8b100f201f9c96..58ece4a7c51bfc246a20642a9e1264373bd973f1 100644 --- a/bsp/stm32/libraries/templates/stm32f0xx/board/board.h +++ b/bsp/stm32/libraries/templates/stm32f0xx/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (256 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -38,4 +42,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif /* __BOARD_H__ */ diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/board.h b/bsp/stm32/libraries/templates/stm32f10x/board/board.h index cd68ba49a8cad8bea15d3f7ff44c5d2755333580..3613a683fcf3d4ac2b708e013bf9ca3b91718955 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/board.h +++ b/bsp/stm32/libraries/templates/stm32f10x/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (128 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -38,4 +42,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif /* __BOARD_H__ */ diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/board.h b/bsp/stm32/libraries/templates/stm32f4xx/board/board.h index 1f1eedd20c5bd46aa8e8d2bc041b874363c53a6f..77a3f20d0d1f85139795ec06973e92a392d499e5 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/board.h +++ b/bsp/stm32/libraries/templates/stm32f4xx/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (1024 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/board.h b/bsp/stm32/libraries/templates/stm32f7xx/board/board.h index 9d28bc82cf769dbdf52ed012389eea457bc17b83..e9c060842358272df4aabc86f8dd9e7d6f799e2e 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/board.h +++ b/bsp/stm32/libraries/templates/stm32f7xx/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (1024 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -37,4 +41,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/board.h b/bsp/stm32/libraries/templates/stm32l4xx/board/board.h index 1596ff1b87f1f09b035f2556bf57195188a2546b..e90a5ecb73c78be73f4bfcb2470cbfbd6c1061ae 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/board.h +++ b/bsp/stm32/libraries/templates/stm32l4xx/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (512 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -28,5 +32,9 @@ void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f091-st-nucleo/board/board.h b/bsp/stm32/stm32f091-st-nucleo/board/board.h index 86e42946e7eefd8f843df699e9e2e04248e0eaf6..db0fa551623078c213e5ae63b21b28c4a50df969 100644 --- a/bsp/stm32/stm32f091-st-nucleo/board/board.h +++ b/bsp/stm32/stm32f091-st-nucleo/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (256 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -38,4 +42,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif /* __BOARD_H__ */ diff --git a/bsp/stm32/stm32f103-atk-nano/board/board.h b/bsp/stm32/stm32f103-atk-nano/board/board.h index cd68ba49a8cad8bea15d3f7ff44c5d2755333580..3613a683fcf3d4ac2b708e013bf9ca3b91718955 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/board.h +++ b/bsp/stm32/stm32f103-atk-nano/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (128 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -38,4 +42,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif /* __BOARD_H__ */ diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/board.h b/bsp/stm32/stm32f103-fire-arbitrary/board/board.h index c254603339e1141197fee733a497d3fa9acda572..02ab04f8a02d7ed79927f55b34e8a4c7dc49410e 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/board.h +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/ #define STM32_SRAM_SIZE 64 #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) @@ -38,4 +42,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif /* __BOARD_H__ */ diff --git a/bsp/stm32/stm32f407-atk-explorer/board/board.h b/bsp/stm32/stm32f407-atk-explorer/board/board.h index f672faff2ce44475189c72c5af07b15eb316df6b..10766c2682cf82fc3f881bc1d39071cf9a89585f 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/board.h +++ b/bsp/stm32/stm32f407-atk-explorer/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_SRAM_SIZE (128) #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f407-st-discovery/board/board.h b/bsp/stm32/stm32f407-st-discovery/board/board.h index 7e58e3705113fc29f3ac38b31a517ea889fb0c53..da32925c91196f8a1f7cab8bc262f7c07d414077 100644 --- a/bsp/stm32/stm32f407-st-discovery/board/board.h +++ b/bsp/stm32/stm32f407-st-discovery/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_SRAM_SIZE (128) #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) @@ -33,5 +37,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f411-st-nucleo/board/board.h b/bsp/stm32/stm32f411-st-nucleo/board/board.h index d3e860a5f5ed3057f50708709fcbb6451a5996e0..24269ebc2c77861298dab39409ca3c0fa54726b6 100644 --- a/bsp/stm32/stm32f411-st-nucleo/board/board.h +++ b/bsp/stm32/stm32f411-st-nucleo/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (512 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f429-armfly-v6/board/board.h b/bsp/stm32/stm32f429-armfly-v6/board/board.h index 98d491df2177380df61b39d0ddc8b9cb0fc165fd..816b460a65cc2bea3be5bb5857e054ef0580bebc 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/board.h +++ b/bsp/stm32/stm32f429-armfly-v6/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifdef BSP_USING_GPIO #include "drv_gpio.h" #endif @@ -46,5 +50,9 @@ extern int __bss_end; void SystemClock_Config(void); void MX_GPIO_Init(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f429-atk-apollo/board/board.h b/bsp/stm32/stm32f429-atk-apollo/board/board.h index c9a0bf1b8d17071ac50c81c2c68c20d28176e1be..7e8c6cfd9ec6e929014ad1e6a7e0e56f898d4d53 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/board.h +++ b/bsp/stm32/stm32f429-atk-apollo/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (1024 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -37,4 +41,8 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f429-fire-challenger/board/board.h b/bsp/stm32/stm32f429-fire-challenger/board/board.h index 32e722cffe3abb4a31846e81784f5d627481c277..8e1611eb7de7ee49557a40e9130ca4d0ee180eb7 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/board.h +++ b/bsp/stm32/stm32f429-fire-challenger/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_SRAM_SIZE (192) #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f767-atk-apollo/board/board.h b/bsp/stm32/stm32f767-atk-apollo/board/board.h index b46c43122494e8a1515654c5e3d30b240ac080af..7cd0f1b795f9afe77662204afe7c1a3b18ed6709 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/board.h +++ b/bsp/stm32/stm32f767-atk-apollo/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (1024 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32f767-fire-challenger/board/board.h b/bsp/stm32/stm32f767-fire-challenger/board/board.h index 6eead502d9577f1cf6de69bc654420ae93a7ef60..dd86a886d2d32eac03a5891d32cf476a955fce3d 100644 --- a/bsp/stm32/stm32f767-fire-challenger/board/board.h +++ b/bsp/stm32/stm32f767-fire-challenger/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_SRAM_SIZE (512) #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) @@ -37,5 +41,9 @@ extern int __bss_end; void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif diff --git a/bsp/stm32/stm32l475-atk-pandora/board/board.h b/bsp/stm32/stm32l475-atk-pandora/board/board.h index 1596ff1b87f1f09b035f2556bf57195188a2546b..e90a5ecb73c78be73f4bfcb2470cbfbd6c1061ae 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/board.h +++ b/bsp/stm32/stm32l475-atk-pandora/board/board.h @@ -15,6 +15,10 @@ #include #include "drv_common.h" +#ifdef __cplusplus +extern "C" { +#endif + #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000) #define STM32_FLASH_SIZE (512 * 1024) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) @@ -28,5 +32,9 @@ void SystemClock_Config(void); +#ifdef __cplusplus +} +#endif + #endif