You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
739 B
28 lines
739 B
/**
|
|
******************************************************************************
|
|
* @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
|
|
|
|
|