bsps/stm32h7: fix propagation of configured HSE freq. value into the code

Sponsored-By:	Precidata
This commit is contained in:
Karel Gardas
2023-03-09 14:15:53 +01:00
parent d5c386ff99
commit 1a4e78b3a0
5 changed files with 22 additions and 0 deletions

View File

@@ -49,6 +49,10 @@
#include <math.h>
#ifdef __rtems__
#include <bsp/linker-symbols.h>
#include <bspopts.h>
#define HSE_VALUE STM32H7_HSE_FREQUENCY
#endif /* __rtems__ */
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */

View File

@@ -49,6 +49,10 @@
#include <math.h>
#ifdef __rtems__
#include <bsp/linker-symbols.h>
#include <bspopts.h>
#define HSE_VALUE STM32H7_HSE_FREQUENCY
#endif /* __rtems__ */
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */

View File

@@ -91,7 +91,13 @@
#include "stm32h7xx.h"
#include <math.h>
#ifdef __rtems__
#include <bsp/linker-symbols.h>
#include <bspopts.h>
#define HSE_VALUE STM32H7_HSE_FREQUENCY
#endif /* __rtems__ */
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */

View File

@@ -93,6 +93,10 @@
#include <math.h>
#ifdef __rtems__
#include <bsp/linker-symbols.h>
#include <bspopts.h>
#define HSE_VALUE STM32H7_HSE_FREQUENCY
#endif /* __rtems__ */
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */

View File

@@ -48,6 +48,10 @@
#include <math.h>
#ifdef __rtems__
#include <bsp/linker-symbols.h>
#include <bspopts.h>
#define HSE_VALUE STM32H7_HSE_FREQUENCY
#endif /* __rtems__ */
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)24000000) /*!< Value of the External oscillator in Hz */