OPT->WDG在头文件的定义里没有啊?
typedef struct OPT_struct
{
__IO uint8_t OPT0; /*!< Option byte 0: Read-out protection (not accessible in IAP mode) */
__IO uint8_t OPT1; /*!< Option byte 1: User boot code */
__IO uint8_t NOPT1; /*!< Complementary Option byte 1 */
__IO uint8_t OPT2; /*!< Option byte 2: Alternate function remapping */
__IO uint8_t NOPT2; /*!< Complementary Option byte 2 */
__IO uint8_t OPT3; /*!< Option byte 3: Watchdog option */
__IO uint8_t NOPT3; /*!< Complementary Option byte 3 */
__IO uint8_t OPT4; /*!< Option byte 4: Clock option */
__IO uint8_t NOPT4; /*!< Complementary Option byte 4 */
__IO uint8_t OPT5; /*!< Option byte 5: HSE clock startup */
__IO uint8_t NOPT5; /*!< Complementary Option byte 5 */
uint8_t RESERVED1; /*!< Reserved Option byte*/
uint8_t RESERVED2; /*!< Reserved Option byte*/
__IO uint8_t OPT7; /*!< Option byte 7: flash wait states */
__IO uint8_t NOPT7; /*!< Complementary Option byte 7 */
}
OPT_TypeDef;
|