WDT定时器使能相关
extern void WDT_A_initIntervalTimer(uint_fast8_t clockSelect,uint_fast8_t clockDivider);
//关闭看门狗定时器
extern void WDT_A_startTimer(void);
//开启看门狗定时器
extern void WDT_A_clearTimer(void);
//清除看门狗计数器值
WDT模式设置
WDT定时器分为看门狗定时器和间隔定时器
看门狗定时器当密码写入错误或者时间间隔过期后会触发系统重置
间隔定时器每个时间间隔结束后会进入中断
extern void WDT_A_initWatchdogTimer(uint_fast8_t clockSelect,uint_fast8_t clockDivider);
//初始化看门狗定时器
//! \param clockSelect is the clock source that the watchdog timer will use.
//! Valid values are
//! - \b WDT_A_CLOCKSOURCE_SMCLK [Default]
//! - \b WDT_A_CLOCKSOURCE_ACLK
//! - \b WDT_A_CLOCKSOURCE_VLOCLK
//! - \b WDT_A_CLOCKSOURCE_BCLK
//! \param clockIterations is the number of clock iterations for a watchdog
//! timeout.
//! Valid values are
//! - \b WDT_A_CLOCKITERATIONS_2G [Default]
//! - \b WDT_A_CLOCKITERATIONS_128M
//! - \b WDT_A_CLOCKITERATIONS_8192K
//! - \b WDT_A_CLOCKITERATIONS_512K
//! - \b WDT_A_CLOCKITERATIONS_32K
//! - \b WDT_A_CLOCKITERATIONS_8192
//! - \b WDT_A_CLOCKITERATIONS_512
//! - \b WDT_A_CLOCKITERATIONS_64
extern void WDT_A_initIntervalTimer(uint_fast8_t clockSelect,uint_fast8_t clockDivider);
//间隔定时器模式初始化
//! \param clockSelect is the clock source that the watchdog timer will use.
//! Valid values are
//! - \b WDT_A_CLOCKSOURCE_SMCLK [Default]
//! - \b WDT_A_CLOCKSOURCE_ACLK
//! - \b WDT_A_CLOCKSOURCE_VLOCLK
//! - \b WDT_A_CLOCKSOURCE_BCLK
//! \param clockIterations is the number of clock iterations for a watchdog
//! interval.
//! Valid values are
//! - \b WDT_A_CLOCKITERATIONS_2G [Default]
//! - \b WDT_A_CLOCKITERATIONS_128M
//! - \b WDT_A_CLOCKITERATIONS_8192K
//! - \b WDT_A_CLOCKITERATIONS_512K
//! - \b WDT_A_CLOCKITERATIONS_32K
//! - \b WDT_A_CLOCKITERATIONS_8192
//! - \b WDT_A_CLOCKITERATIONS_512
//! - \b WDT_A_CLOCKITERATIONS_64
中断处理函数
extern void WDT_A_registerInterrupt(void (*intHandler)(void));
//注册中断处理函数
extern void WDT_A_unregisterInterrupt(void);
//注销中断处理函数
选择看门狗重置类型
extern void WDT_A_setPasswordViolationReset(uint_fast8_t resetType);
//设置看门狗密码错误时的重置类型
//! \param resetType The type of reset to set
//!
//! The \e resetType parameter must be only one of the following values:
//! - \b WDT_A_HARD_RESET
//! - \b WDT_A_SOFT_RESET
extern void WDT_A_setTimeoutReset(uint_fast8_t resetType);
//设置看门狗超时时发生的RESET类型
//! \param resetType The type of reset to set
//!
//! The \e resetType parameter must be only one of the following values:
//! - \b WDT_A_HARD_RESET
//! - \b WDT_A_SOFT_RESET
//!
//! \return None.