/** ****************************************************************************** * @file bsp_cap.h * @author Radkil * @brief Timer capture device header ****************************************************************************** * @attention lua_capture_val is interface of Lua_API * @attention lua_Tick is interface of Lua_API * @attention CAP_init is interface of Lua_API ****************************************************************************** */ #ifndef __BSP_CAP_H #define __BSP_CAP_H #include "bsp_config.h" #ifdef USE_TIMER #include "tim.h" #include "stdbool.h" #define CAP_tim1 htim2 extern int lua_capture_val[20]; void CAP_init(void); bool __Get_Capture(uint8_t i); #endif #endif