#ifndef __BSP_H__ #define __BSP_H__ #include "gpios.h" #include "adcs.h" #include "dacs.h" #include "pwms.h" #include "uarts.h" #include "eeprom.h" // #include "spis.h" #include "i2cs.h" /*** * @brief 启用定时器时钟。 * @param {TIMx} TIMx:定时器外设寄存器地址。 * @return {void} * @note: 此函数应在定时器相关初始化函数之后调用,以启用定时器的时钟。 */ #define ENABLE_TIM(TIMx) \ do \ { \ LL_TIM_EnableCounter(TIMx); \ LL_TIM_EnableIT_UPDATE(TIMx); \ } while (__LINE__ == -1); #define WATCHDOG_RESET() LL_IWDG_ReloadCounter(IWDG) #endif // __BSP_H__