/* #define MAINCLK_FREQ_HSE */
/* #define MAINCLK_FREQ_32MHz */ /* The HSE clock frequency must be 6MHz/8MHz/12MHz/16MHz */
/* #define MAINCLK_FREQ_48MHz */ /* The HSE clock frequency must be 6MHz/8MHz/12MHz/16MHz */
/* #define MAINCLK_FREQ_64MHz */ /* The HSE clock frequency must be 8MHz/12MHz/16MHz */
/* #define MAINCLK_FREQ_72MHz */ /* The HSE clock frequency must be 6MHz/12MHz */
/* #define MAINCLK_FREQ_96MHz */ /* The HSE clock frequency must be 6MHz/8MHz/12MHz/16MHz */
/* #define MAINCLK_FREQ_128MHz */ /* The HSE clock frequency must be 8MHz/16MHz */
#if !defined HSE_VALUE
// #define HSE_VALUE (8000000) /*!< Value of the External oscillator in Hz */
#define HSE_VALUE (12000000)
#endif /* HSE_VALUE */
这里是外部晶振的实际值。
这里是填写实际的主频。