加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Btn_SM_Config.h 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
ianhom 提交于 2016-06-17 15:59 . Update Btn_SM_Config.h
/******************************************************************************
* File : Btn_SM_Config.h
* Function : Configure file for button state machine module.
* description: All configuration should be done here.
* 1. Modify number of used button with MAX_BTN_ST
* 2. Define __BTN_SM_SPECIFIED_BTN_ST_FN if you want use specified
* button state getting function for each button.
* Version : V1.10
* Author : Ian
* Date : 15th Jun 2016
* History : No. When Who Version What
* 1 15/Jun/2016 Ian V1.10 Create
******************************************************************************/
#ifndef _BTN_SM_CONFIG_
#define _BTN_SM_CONFIG_
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_BTN_CH (3) /* Max number of buttons, please define it here */
/* If you want to use specified button state getting function, define the MACRO */
//#define __BTN_SM_SPECIFIED_BTN_ST_FN /* Use specified button state getting function */
/* If type is NOT defined, define the type here */
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long int uint32;
#ifdef __cplusplus
}
#endif
#endif /* _BTN_SM_CONFIG_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化