GD自己的库里这个
/******************* Bit definition for RCC_AHBRCR register ****************/
#define RCC_AHBRCR_PARST ((uint32_t)0x00020000) /*!< GPIOA clock reset */
#define RCC_AHBRCR_PBRST ((uint32_t)0x00040000) /*!< GPIOB clock reset */
#define RCC_AHBRCR_PCRST ((uint32_t)0x00080000) /*!< GPIOC clock reset */
#define RCC_AHBRCR_PDRST ((uint32_t)0x00010000) /*!< GPIOD clock reset */
#define RCC_AHBRCR_PFRST ((uint32_t)0x00040000) /*!< GPIOF clock reset */
#define RCC_AHBRCR_TSIRST ((uint32_t)0x00100000) /*!< TSI clock reset */
这个地方是不是有错误 RCC_AHBRCR_PBRST 和 RCC_AHBRCR_PFRST 居然都是 0x00040000
|