[rtems commit] bsp/stm32h7: Move <math.h> include

Sebastian Huber sebh at rtems.org
Tue Oct 27 05:14:34 UTC 2020


Module:    rtems
Branch:    master
Commit:    2f157e20073d11364a3e3811328d8657e04d8788
Changeset: http://git.rtems.org/rtems/commit/?id=2f157e20073d11364a3e3811328d8657e04d8788

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 23 11:37:46 2020 +0100

bsp/stm32h7: Move <math.h> include

This is necessary for libbsd compatibility.

Update #3910.

---

 bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c     | 1 +
 bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c  | 1 +
 bsps/arm/stm32h7/include/stm32h7xx_hal_def.h | 1 -
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c
index f1c28a2..1176209 100644
--- a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c
+++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c
@@ -67,6 +67,7 @@
 
 /* Includes ------------------------------------------------------------------*/
 #include "stm32h7xx_hal.h"
+#include <math.h>
 
 /** @addtogroup STM32H7xx_HAL_Driver
   * @{
diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
index 2c445e7..0aef587 100644
--- a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
+++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
@@ -23,6 +23,7 @@
 
 /* Includes ------------------------------------------------------------------*/
 #include "stm32h7xx_hal.h"
+#include <math.h>
 
 /** @addtogroup STM32H7xx_HAL_Driver
   * @{
diff --git a/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h b/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h
index fce605d..decd21f 100644
--- a/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h
+++ b/bsps/arm/stm32h7/include/stm32h7xx_hal_def.h
@@ -30,7 +30,6 @@
 #include "stm32h7xx.h"
 #include "Legacy/stm32_hal_legacy.h"
 #include <stddef.h>
-#include <math.h>
 
 /* Exported types ------------------------------------------------------------*/
 



More information about the vc mailing list