File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
targets/TARGET_STM/TARGET_STM32F7
TARGET_STM32F746xG/TARGET_DISCO_F746NG
TARGET_STM32F769xI/TARGET_DISCO_F769NI Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 83
83
84
84
HAL_StatusTypeDef HAL_Init (void );
85
85
86
- #define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
86
+ #if !defined (HSE_VALUE )
87
+ #define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
88
+ #endif /* HSE_VALUE */
87
89
88
90
#if !defined (HSI_VALUE )
89
91
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
Original file line number Diff line number Diff line change 83
83
84
84
HAL_StatusTypeDef HAL_Init (void );
85
85
86
- #define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
86
+ #if !defined (HSE_VALUE )
87
+ #define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
88
+ #endif /* HSE_VALUE */
87
89
88
90
#if !defined (HSI_VALUE )
89
91
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
Original file line number Diff line number Diff line change 103
103
* This value is used by the RCC HAL module to compute the system frequency
104
104
* (when HSE is used as system clock source, directly or through the PLL).
105
105
*/
106
- #if !defined (HSE_VALUE )
107
- #define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
108
- #endif /* HSE_VALUE */
106
+ //#if !defined (HSE_VALUE)
107
+ #if defined(TARGET_DISCO_F746NG ) || defined(TARGET_DISCO_F769NI )
108
+ #define HSE_VALUE 25000000U /*!< Value of the External oscillator in Hz */
109
+ #else
110
+ #define HSE_VALUE 8000000U /*!< Default value of the External oscillator in Hz */
111
+ #endif
109
112
110
113
#if !defined (HSE_STARTUP_TIMEOUT )
111
114
#define HSE_STARTUP_TIMEOUT 200U /*!< Time out for HSE start up, in ms */
You can’t perform that action at this time.
0 commit comments