forked from Imagelibrary/rtems
bsps/stm32h7: fix propagation of configured HSE freq. value into the code
Sponsored-By: Precidata
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user