From 001b368a50b2011b30bb57d52ab42fc5471f9e6f Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 13 Jul 2025 20:01:42 -0400 Subject: [PATCH] contrib: Re-apply changes from initial import These changes are from: cb78150d868f9d4eaa0a10318b99b5b1a1fa1b3f The Doxygen comments have been removed to allow for easier importing in the future. --- .../stm32h7xx_hal_driver/Inc/stm32h7xx_hal_def.h | 7 +++++++ .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_adc.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_bdma.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_comp.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_cordic.h | 2 +- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crc.h | 2 +- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crs.h | 2 +- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dac.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma2d.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_exti.h | 10 +++++----- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_fmac.h | 2 +- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_gpio.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_hrtim.h | 2 +- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_i2c.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lptim.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lpuart.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_mdma.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_opamp.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rcc.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rng.h | 4 ++-- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rtc.h | 8 ++++---- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_spi.h | 12 ++++++------ .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_swpmi.h | 6 +++--- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_tim.h | 8 ++++---- .../stm32h7xx_hal_driver/Inc/stm32h7xx_ll_usart.h | 8 ++++---- .../stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal.c | 10 ++++++++++ .../stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c | 10 ++++++++++ .../stm32h7xx_hal_driver/Src/stm32h7xx_hal_rcc.c | 6 ++++++ .../stm32h7xx_hal_driver/Src/stm32h7xx_hal_sd.c | 2 ++ .../stm32h7xx_hal_driver/Src/stm32h7xx_hal_uart.c | 2 ++ .../stm32h7xx_hal_driver/Src/stm32h7xx_hal_usart.c | 2 ++ .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_adc.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_bdma.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_comp.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_cordic.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_crc.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_crs.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_dac.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma2d.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_exti.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_fmac.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_gpio.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_hrtim.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_i2c.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_lptim.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_lpuart.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_mdma.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_opamp.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_rcc.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_rng.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_rtc.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_spi.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_swpmi.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_tim.c | 2 +- .../stm32h7xx_hal_driver/Src/stm32h7xx_ll_usart.c | 2 +- 57 files changed, 130 insertions(+), 91 deletions(-) diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_hal_def.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_hal_def.h index 188e31cefb..7317b5ed5d 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_hal_def.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_hal_def.h @@ -29,6 +29,13 @@ #include "stm32h7xx.h" #include "Legacy/stm32_hal_legacy.h" #include +#ifdef __rtems__ +/* this is to avoid definition of log function which conflicts with + * freebsd's systm.h log function. Whole theatre just to make sure + * we do have float_t available (defined in math.h) which is later + * used in HAL */ +#define __math_68881 1 +#endif /* __rtems__ */ #include /* Exported types ------------------------------------------------------------*/ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_adc.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_adc.h index ac75a15318..a0fe444e95 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_adc.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_adc.h @@ -439,7 +439,7 @@ extern "C" { /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup ADC_LL_ES_INIT ADC Exported Init structure * @{ */ @@ -8359,7 +8359,7 @@ __STATIC_INLINE uint32_t LL_ADC_IsEnabledIT_AWD3(ADC_TypeDef *ADCx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup ADC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_bdma.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_bdma.h index 8db1b7cc6f..5c123d3cb3 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_bdma.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_bdma.h @@ -71,7 +71,7 @@ static const uint8_t LL_BDMA_CH_OFFSET_TAB[] = * @} */ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup BDMA_LL_ES_INIT BDMA Exported Init structure * @{ */ @@ -258,7 +258,7 @@ typedef struct #define LL_BDMA_CHANNEL_5 0x00000005U /*!< BDMA Channel 5 */ #define LL_BDMA_CHANNEL_6 0x00000006U /*!< BDMA Channel 6 */ #define LL_BDMA_CHANNEL_7 0x00000007U /*!< BDMA Channel 7 */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) #define LL_BDMA_CHANNEL_ALL 0xFFFF0000U /*!< BDMA Channel all (used only for function @ref LL_BDMA_DeInit(). */ #endif /*USE_FULL_LL_DRIVER*/ /** @@ -2451,7 +2451,7 @@ __STATIC_INLINE uint32_t LL_BDMA_IsEnabledIT_TE(BDMA_TypeDef *BDMAx, uint32_t Ch * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup BDMA_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_comp.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_comp.h index 0d342c580e..7b6a762e61 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_comp.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_comp.h @@ -59,7 +59,7 @@ extern "C" { * @} */ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup COMP_LL_ES_INIT COMP Exported Init structure * @{ */ @@ -904,7 +904,7 @@ __STATIC_INLINE uint32_t LL_COMP_IsEnabledIT_OutputTrig(COMP_TypeDef *COMPx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup COMP_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_cordic.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_cordic.h index fe1f6f9efc..52e3200640 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_cordic.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_cordic.h @@ -751,7 +751,7 @@ __STATIC_INLINE uint32_t LL_CORDIC_ReadData(const CORDIC_TypeDef *CORDICx) -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup CORDIC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crc.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crc.h index 7c5aa20c6c..eb494de935 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crc.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crc.h @@ -428,7 +428,7 @@ __STATIC_INLINE void LL_CRC_Write_IDR(CRC_TypeDef *CRCx, uint32_t InData) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup CRC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crs.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crs.h index 86ce84783b..9eb8f2d153 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crs.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_crs.h @@ -747,7 +747,7 @@ __STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ESYNC(void) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup CRS_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dac.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dac.h index 0059a34df7..a4991d5c63 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dac.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dac.h @@ -153,7 +153,7 @@ extern "C" { /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DAC_LL_ES_INIT DAC Exported Init structure * @{ */ @@ -1829,7 +1829,7 @@ __STATIC_INLINE uint32_t LL_DAC_IsEnabledIT_DMAUDR2(const DAC_TypeDef *DACx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DAC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma.h index c05815a94f..a05c4afc93 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma.h @@ -79,7 +79,7 @@ static const uint8_t LL_DMA_STR_OFFSET_TAB[] = */ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DMA_LL_ES_INIT DMA Exported Init structure * @{ */ @@ -3286,7 +3286,7 @@ __STATIC_INLINE uint32_t LL_DMA_IsEnabledIT_FE(DMA_TypeDef *DMAx, uint32_t Strea * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DMA_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma2d.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma2d.h index daea475843..6151e189b7 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma2d.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_dma2d.h @@ -41,7 +41,7 @@ extern "C" { /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DMA2D_LL_Private_Macros DMA2D Private Macros * @{ */ @@ -52,7 +52,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DMA2D_LL_ES_Init_Struct DMA2D Exported Init structures * @{ */ @@ -2188,7 +2188,7 @@ __STATIC_INLINE uint32_t LL_DMA2D_IsEnabledIT_TE(DMA2D_TypeDef *DMA2Dx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup DMA2D_LL_EF_Init_Functions Initialization and De-initialization Functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_exti.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_exti.h index 885f22d9f1..04206e84d2 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_exti.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_exti.h @@ -41,7 +41,7 @@ extern "C" { /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private Macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup EXTI_LL_Private_Macros EXTI Private Macros * @{ */ @@ -50,7 +50,7 @@ extern "C" { */ #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup EXTI_LL_ES_INIT EXTI Exported Init structure * @{ */ @@ -211,14 +211,14 @@ typedef struct #define LL_EXTI_LINE_ALL (0xFFFFFFFFU) /*!< All Extended line */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) #define LL_EXTI_LINE_NONE (0x00000000U) /*!< None Extended line */ #endif /*USE_FULL_LL_DRIVER*/ /** * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup EXTI_LL_EC_MODE Mode * @{ @@ -3248,7 +3248,7 @@ __STATIC_INLINE uint32_t LL_D3_EXTI_GetPendClearSel_48_63(uint32_t ExtiLine) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup EXTI_LL_EF_Init Initialization and de-initialization functions * @{, */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_fmac.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_fmac.h index 8e92c3d4d1..8e19a012bf 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_fmac.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_fmac.h @@ -1035,7 +1035,7 @@ __STATIC_INLINE void LL_FMAC_ConfigFunc(FMAC_TypeDef *FMACx, uint8_t Start, uint -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup FMAC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_gpio.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_gpio.h index b51f9d3bf9..e510ca8a4a 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_gpio.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_gpio.h @@ -41,7 +41,7 @@ extern "C" { /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup GPIO_LL_Private_Macros GPIO Private Macros * @{ */ @@ -52,7 +52,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup GPIO_LL_ES_INIT GPIO Exported Init structures * @{ */ @@ -949,7 +949,7 @@ __STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup GPIO_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_hrtim.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_hrtim.h index d3f3608fe1..fbb5fac122 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_hrtim.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_hrtim.h @@ -10443,7 +10443,7 @@ __STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_DLYPRT(const HRTIM_TypeDef *HR * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup HRTIM_LL_LL_EF_Init In-initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_i2c.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_i2c.h index 6400400661..87b6e3f96e 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_i2c.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_i2c.h @@ -49,7 +49,7 @@ extern "C" { */ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2C_LL_Private_Macros I2C Private Macros * @{ */ @@ -59,7 +59,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2C_LL_ES_INIT I2C Exported Init structure * @{ */ @@ -2243,7 +2243,7 @@ __STATIC_INLINE void LL_I2C_TransmitData8(I2C_TypeDef *I2Cx, uint8_t Data) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2C_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lptim.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lptim.h index 033e7b25b4..692c0ddee6 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lptim.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lptim.h @@ -43,7 +43,7 @@ extern "C" { /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPTIM_LL_Private_Macros LPTIM Private Macros * @{ */ @@ -53,7 +53,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPTIM_LL_ES_INIT LPTIM Exported Init structure * @{ */ @@ -352,7 +352,7 @@ typedef struct @endcond */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPTIM_LL_EF_Init Initialisation and deinitialisation functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lpuart.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lpuart.h index fe66becb5b..ca4377fa16 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lpuart.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_lpuart.h @@ -76,7 +76,7 @@ static const uint16_t LPUART_PRESCALER_TAB[] = /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPUART_LL_Private_Macros LPUART Private Macros * @{ */ @@ -86,7 +86,7 @@ static const uint16_t LPUART_PRESCALER_TAB[] = #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPUART_LL_ES_INIT LPUART Exported Init structures * @{ */ @@ -2609,7 +2609,7 @@ __STATIC_INLINE void LL_LPUART_RequestRxDataFlush(USART_TypeDef *LPUARTx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup LPUART_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_mdma.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_mdma.h index 8b80c7d811..70327df125 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_mdma.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_mdma.h @@ -78,7 +78,7 @@ static const uint32_t LL_MDMA_CH_OFFSET_TAB[] = /* Private macros ------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup MDMA_LL_ES_INIT MDMA Exported Init structure * @{ */ @@ -4319,7 +4319,7 @@ __STATIC_INLINE uint32_t LL_MDMA_IsEnabledIT_TC(MDMA_TypeDef *MDMAx, uint32_t Ch * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup MDMA_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_opamp.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_opamp.h index abc4d301d8..ed140e41ec 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_opamp.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_opamp.h @@ -95,7 +95,7 @@ extern "C" { /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup OPAMP_LL_ES_INIT OPAMP Exported Init structure * @{ */ @@ -787,7 +787,7 @@ __STATIC_INLINE uint32_t LL_OPAMP_IsEnabled(OPAMP_TypeDef *OPAMPx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup OPAMP_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rcc.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rcc.h index bd700dc2b8..418c52a39e 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rcc.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rcc.h @@ -97,7 +97,7 @@ extern const uint8_t LL_RCC_PrescTable[16]; * @} */ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RCC_LL_Exported_Types RCC Exported Types * @{ */ @@ -1580,7 +1580,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RCC_LL_EC_PERIPH_FREQUENCY Peripheral clock frequency * @{ */ @@ -6327,7 +6327,7 @@ __STATIC_INLINE uint32_t LL_RCC_IsEnableIT_LSECSS(void) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RCC_LL_EF_Init De-initialization function * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rng.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rng.h index 62039d0e6b..9fdf6bf614 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rng.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rng.h @@ -52,7 +52,7 @@ extern "C" { /* Private macros ------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RNG_LL_ES_Init_Struct RNG Exported Init structures * @{ */ @@ -676,7 +676,7 @@ __STATIC_INLINE uint32_t LL_RNG_GetHealthConfig(RNG_TypeDef *RNGx) * @} */ #endif /* RNG_VER_3_2, RNG_VER_3_1 or RNG_VER_3_0 */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RNG_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rtc.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rtc.h index 85e6fadda7..0aa8e7a338 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rtc.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_rtc.h @@ -64,7 +64,7 @@ extern "C" { */ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RTC_LL_Private_Macros RTC Private Macros * @{ */ @@ -74,7 +74,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RTC_LL_ES_INIT RTC Exported Init structure * @{ */ @@ -200,7 +200,7 @@ typedef struct * @{ */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RTC_LL_EC_FORMAT FORMAT * @{ */ @@ -5168,7 +5168,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ATAMP_SEEDF(void) */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup RTC_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_spi.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_spi.h index e382453558..d321bcd4e0 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_spi.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_spi.h @@ -50,7 +50,7 @@ extern "C" { */ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SPI_LL_Exported_Types SPI Exported Types * @{ */ @@ -423,7 +423,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SPI_LL_EC_CRC_CALCULATION CRC Calculation * @{ @@ -2592,7 +2592,7 @@ __STATIC_INLINE uint32_t LL_SPI_GetTxCRC(const SPI_TypeDef *SPIx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SPI_LL_EF_Init Initialization and de-initialization functions * @{ */ @@ -2621,7 +2621,7 @@ void LL_SPI_StructInit(LL_SPI_InitTypeDef *SPI_InitStruct); /* Private macros ------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2S_LL_ES_INIT I2S Exported Init structure * @{ */ @@ -2774,7 +2774,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2S_LL_EC_MCLK_OUTPUT MCLK Output * @{ @@ -3745,7 +3745,7 @@ __STATIC_INLINE void LL_I2S_TransmitData32(SPI_TypeDef *SPIx, uint32_t TxData) */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup I2S_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_swpmi.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_swpmi.h index c2b31d604f..be3e8d0b38 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_swpmi.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_swpmi.h @@ -40,7 +40,7 @@ extern "C" { /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SWPMI_LL_Private_Macros SWPMI Private Macros * @{ */ @@ -50,7 +50,7 @@ extern "C" { #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SWPMI_LL_ES_INIT SWPMI Exported Init structure * @{ */ @@ -1205,7 +1205,7 @@ __STATIC_INLINE void LL_SWPMI_DisableTXBypass(SWPMI_TypeDef *SWPMIx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup SWPMI_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_tim.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_tim.h index 050f73853c..de908b037e 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_tim.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_tim.h @@ -187,7 +187,7 @@ static const uint8_t SHIFT_TAB_OISx[] = /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup TIM_LL_ES_INIT TIM Exported Init structure * @{ */ @@ -587,7 +587,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup TIM_LL_EC_BREAK_ENABLE Break Enable * @{ */ @@ -726,7 +726,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup TIM_LL_EC_OCSTATE Output Configuration State * @{ */ @@ -5169,7 +5169,7 @@ __STATIC_INLINE void LL_TIM_GenerateEvent_BRK2(TIM_TypeDef *TIMx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup TIM_LL_EF_Init Initialisation and deinitialisation functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_usart.h b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_usart.h index d1242ebde2..fda4473025 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_usart.h +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Inc/stm32h7xx_ll_usart.h @@ -71,7 +71,7 @@ static const uint32_t USART_PRESCALER_TAB[] = * @} */ /* Private macros ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup USART_LL_Private_Macros USART Private Macros * @{ */ @@ -81,7 +81,7 @@ static const uint32_t USART_PRESCALER_TAB[] = #endif /*USE_FULL_LL_DRIVER*/ /* Exported types ------------------------------------------------------------*/ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup USART_LL_ES_INIT USART Exported Init structures * @{ */ @@ -332,7 +332,7 @@ typedef struct * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup USART_LL_EC_CLOCK Clock Signal * @{ */ @@ -4364,7 +4364,7 @@ __STATIC_INLINE void LL_USART_RequestTxDataFlush(USART_TypeDef *USARTx) * @} */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /** @defgroup USART_LL_EF_Init Initialization and de-initialization functions * @{ */ diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal.c index 35eeb7e20b..9dfb4068ee 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal.c @@ -68,9 +68,11 @@ /** @defgroup HAL_Exported_Variables HAL Exported Variables * @{ */ +#ifndef __rtems__ __IO uint32_t uwTick; uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */ HAL_TickFreqTypeDef uwTickFreq = HAL_TICK_FREQ_DEFAULT; /* 1KHz */ +#endif /* __rtems__ */ /** * @} */ @@ -166,11 +168,13 @@ uint32_t common_system_clock; SystemCoreClock = common_system_clock; #endif /* DUAL_CORE && CORE_CM4 */ +#ifndef __rtems__ /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK) { return HAL_ERROR; } +#endif /* __rtems__ */ /* Init the low level hardware */ HAL_MspInit(); @@ -179,6 +183,7 @@ uint32_t common_system_clock; return HAL_OK; } +#ifndef __rtems__ /** * @brief This function de-Initializes common part of the HAL and stops the systick. * This function is optional. @@ -220,7 +225,9 @@ HAL_StatusTypeDef HAL_DeInit(void) /* Return function status */ return HAL_OK; } +#endif /* __rtems__ */ +#ifndef __rtems__ /** * @brief Initializes the MSP. * @retval None @@ -287,6 +294,7 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) /* Return function status */ return HAL_OK; } +#endif /* __rtems__ */ /** * @} @@ -315,6 +323,7 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) * @{ */ +#ifndef __rtems__ /** * @brief This function is called to increment a global variable "uwTick" * used as application time base. @@ -449,6 +458,7 @@ __weak void HAL_ResumeTick(void) /* Enable SysTick Interrupt */ SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk; } +#endif /* __rtems__ */ /** * @brief Returns the HAL revision diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c index 2536a73b12..2a32661a66 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_eth.c @@ -380,8 +380,10 @@ HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth) /*------------------ MAC, MTL and DMA default Configuration ----------------*/ ETH_MACDMAConfig(heth); +#ifndef __rtems__ /* SET DSL to 64 bit */ MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT); +#endif /* __rtems__ */ /* Set Receive Buffers Length (must be a multiple of 4) */ if ((heth->Init.RxBuffLen % 0x4U) != 0x0U) @@ -458,6 +460,7 @@ HAL_StatusTypeDef HAL_ETH_DeInit(ETH_HandleTypeDef *heth) return HAL_OK; } +#ifndef __rtems__ /** * @brief Initializes the ETH MSP. * @param heth: pointer to a ETH_HandleTypeDef structure that contains @@ -472,6 +475,7 @@ __weak void HAL_ETH_MspInit(ETH_HandleTypeDef *heth) the HAL_ETH_MspInit could be implemented in the user file */ } +#endif /* __rtems__ */ /** * @brief DeInitializes ETH MSP. @@ -1151,6 +1155,7 @@ HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff) */ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth) { +#ifndef __rtems__ uint32_t descidx; uint32_t tailidx; uint32_t desccount; @@ -1220,6 +1225,7 @@ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth) heth->RxDescList.RxBuildDescIdx = descidx; heth->RxDescList.RxBuildDescCnt = desccount; } +#endif /* ! __rtems__ */ } /** @@ -2977,6 +2983,7 @@ static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth) */ static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) { +#ifndef __rtems__ ETH_DMADescTypeDef *dmatxdesc; uint32_t i; @@ -3004,6 +3011,7 @@ static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) /* Set Transmit Descriptor Tail pointer */ WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc); +#endif /* __rtems__ */ } /** @@ -3015,6 +3023,7 @@ static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) */ static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth) { +#ifndef __rtems__ ETH_DMADescTypeDef *dmarxdesc; uint32_t i; @@ -3048,6 +3057,7 @@ static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth) /* Set Receive Descriptor Tail pointer Address */ WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U)))); +#endif /* __rtems__ */ } /** diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_rcc.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_rcc.c index 8c987ac8ef..ff54ff5c73 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_rcc.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_rcc.c @@ -172,6 +172,7 @@ * @{ */ +#ifndef __rtems__ /** * @brief Resets the RCC clock configuration to the default reset state. * @note The default reset state of the clock configuration is given below: @@ -387,6 +388,7 @@ HAL_StatusTypeDef HAL_RCC_DeInit(void) return HAL_OK; } +#endif /* __rtems__ */ /** * @brief Initializes the RCC Oscillators according to the specified parameters in the @@ -1234,7 +1236,11 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, ui #endif /* DUAL_CORE && CORE_CM4 */ /* Configure the source of time base considering new system clocks settings*/ +#ifndef __rtems__ halstatus = HAL_InitTick(uwTickPrio); +#else /* __rtems__ */ + halstatus = HAL_OK; +#endif /* __rtems__ */ return halstatus; } diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_sd.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_sd.c index 704d1bafc7..966540edc8 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_sd.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_sd.c @@ -608,6 +608,7 @@ HAL_StatusTypeDef HAL_SD_DeInit(SD_HandleTypeDef *hsd) } +#ifndef __rtems__ /** * @brief Initializes the SD MSP. * @param hsd: Pointer to SD handle @@ -622,6 +623,7 @@ __weak void HAL_SD_MspInit(SD_HandleTypeDef *hsd) the HAL_SD_MspInit could be implemented in the user file */ } +#endif /* __rtems__ */ /** * @brief De-Initialize SD MSP. diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_uart.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_uart.c index 3465d29cca..017e3bbc93 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_uart.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_uart.c @@ -671,6 +671,7 @@ HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart) return HAL_OK; } +#ifndef __rtems__ /** * @brief Initialize the UART MSP. * @param huart UART handle. @@ -685,6 +686,7 @@ __weak void HAL_UART_MspInit(UART_HandleTypeDef *huart) the HAL_UART_MspInit can be implemented in the user file */ } +#endif /* __rtems__ */ /** * @brief DeInitialize the UART MSP. diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_usart.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_usart.c index 85ccef27e3..4b43b712ca 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_usart.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_hal_usart.c @@ -373,6 +373,7 @@ HAL_StatusTypeDef HAL_USART_DeInit(USART_HandleTypeDef *husart) return HAL_OK; } +#ifndef __rtems__ /** * @brief Initialize the USART MSP. * @param husart USART handle. @@ -387,6 +388,7 @@ __weak void HAL_USART_MspInit(USART_HandleTypeDef *husart) the HAL_USART_MspInit can be implemented in the user file */ } +#endif /* __rtems__ */ /** * @brief DeInitialize the USART MSP. diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_adc.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_adc.c index 86ef0277a2..1e3174e46e 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_adc.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_adc.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_adc.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_bdma.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_bdma.c index 9ba6ff0fef..8f83ab92d1 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_bdma.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_bdma.c @@ -16,7 +16,7 @@ ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_bdma.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_comp.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_comp.c index f14b2e71a6..762a8210b7 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_comp.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_comp.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_comp.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_cordic.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_cordic.c index ceb3247647..85fb7b704a 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_cordic.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_cordic.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_cordic.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crc.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crc.c index 34f0dd117d..84544026e3 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crc.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crc.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_crc.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crs.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crs.c index e2977e445b..5a234f6a13 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crs.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_crs.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_crs.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dac.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dac.c index aedbc6645a..5f85e18ef9 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dac.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dac.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_dac.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma.c index 183cd743ee..fb210d415c 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_dma.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma2d.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma2d.c index e79d451964..c5e9951aaa 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma2d.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_dma2d.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_dma2d.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_exti.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_exti.c index 5e3a19848f..18387bd3c2 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_exti.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_exti.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_exti.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_fmac.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_fmac.c index eab7ae8ca0..c074f80ece 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_fmac.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_fmac.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_fmac.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_gpio.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_gpio.c index f48c3465b2..b66b3cf99c 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_gpio.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_gpio.c @@ -16,7 +16,7 @@ ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_gpio.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_hrtim.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_hrtim.c index 1ee8c0a112..2912347b3f 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_hrtim.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_hrtim.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_hrtim.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_i2c.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_i2c.c index 69f7923c66..1547c257e2 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_i2c.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_i2c.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_i2c.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lptim.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lptim.c index 54dc528488..3d82ac6f69 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lptim.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lptim.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_lptim.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lpuart.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lpuart.c index 739cb1a632..79c9fad22e 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lpuart.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_lpuart.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_lpuart.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_mdma.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_mdma.c index c57e98d3a2..f990d780b8 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_mdma.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_mdma.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_mdma.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_opamp.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_opamp.c index ffbb5487dc..c20f590018 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_opamp.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_opamp.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_opamp.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rcc.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rcc.c index e7b85d92d6..6a8ebbcc48 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rcc.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rcc.c @@ -14,7 +14,7 @@ * If no LICENSE file comes with this software, it is provided AS-IS. ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_rcc.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rng.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rng.c index 02981e2c45..a899f0dd50 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rng.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rng.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_rng.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rtc.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rtc.c index 0e516e75d1..e2d24e3495 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rtc.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_rtc.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_rtc.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_spi.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_spi.c index 570569978a..66c062dd96 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_spi.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_spi.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_spi.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_swpmi.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_swpmi.c index 20c2c5e1a0..be18a053de 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_swpmi.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_swpmi.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_swpmi.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_tim.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_tim.c index 89ccf5f0e2..cec8ae4dcd 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_tim.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_tim.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_tim.h" diff --git a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_usart.c b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_usart.c index d4b8d2880f..a38b4d59ab 100644 --- a/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_usart.c +++ b/contrib/bsps/arm/stm32h7/stm32h7xx_hal_driver/Src/stm32h7xx_ll_usart.c @@ -15,7 +15,7 @@ * ****************************************************************************** */ -#if defined(USE_FULL_LL_DRIVER) +#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__) /* Includes ------------------------------------------------------------------*/ #include "stm32h7xx_ll_usart.h"