Merge pull request #3739 from jeromecoutant/PR_F7_HSE

STM32F7 : remove multiple HSE_VALUE define value
pull/3732/merge
Sam Grove 2017-02-21 10:47:00 -06:00 committed by GitHub
commit 3c3e04f6d2
3 changed files with 12 additions and 5 deletions

View File

@ -83,7 +83,9 @@
HAL_StatusTypeDef HAL_Init(void); HAL_StatusTypeDef HAL_Init(void);
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */ #if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#if !defined (HSI_VALUE) #if !defined (HSI_VALUE)
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/

View File

@ -83,7 +83,9 @@
HAL_StatusTypeDef HAL_Init(void); HAL_StatusTypeDef HAL_Init(void);
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */ #if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#if !defined (HSI_VALUE) #if !defined (HSI_VALUE)
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/

View File

@ -103,9 +103,12 @@
* This value is used by the RCC HAL module to compute the system frequency * This value is used by the RCC HAL module to compute the system frequency
* (when HSE is used as system clock source, directly or through the PLL). * (when HSE is used as system clock source, directly or through the PLL).
*/ */
#if !defined (HSE_VALUE) //#if !defined (HSE_VALUE)
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */ #if defined(TARGET_DISCO_F746NG) || defined(TARGET_DISCO_F769NI)
#endif /* HSE_VALUE */ #define HSE_VALUE 25000000U /*!< Value of the External oscillator in Hz */
#else
#define HSE_VALUE 8000000U /*!< Default value of the External oscillator in Hz */
#endif
#if !defined (HSE_STARTUP_TIMEOUT) #if !defined (HSE_STARTUP_TIMEOUT)
#define HSE_STARTUP_TIMEOUT 200U /*!< Time out for HSE start up, in ms */ #define HSE_STARTUP_TIMEOUT 200U /*!< Time out for HSE start up, in ms */