#ifndef __GTIM_H__
#define __GTIM_H__


#include "./SYSTEM/sys/sys.h"


#define GTIM_TIMX_INT                       TIM2
#define GTIM_TIMX_INT_IRQn                  TIM2_IRQn
#define GTIM_TIMX_INT_IRQHandler            TIM2_IRQHandler
#define GTIM_TIMX_INT_CLK_ENABLE()          do{__HAL_RCC_TIM2_CLK_ENABLE();}while(0)  /* TIM2 时钟使能 */




void gtim_timx_int_init(uint16_t arr, uint16_t psc);
extern TIM_HandleTypeDef g_timx_handle;             /* 定时器句柄  */
#endif

