diff --git a/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h b/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h index 188e31cefb..7317b5ed5d 100644 --- a/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h +++ b/bsps/arm/stm32h7/include/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 ------------------------------------------------------------*/