SY883x_For_Client_JLAB_JS07/UsrInc/key/key.h

65 lines
1.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
******************************************************************************
*
* @file key.h
* @brief key module
*
*
* @version 1.0
* @date 2023/05/12 09:59:40
* @author Alex Xu
*
* Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd.
* All Rights Reserved
*
* History:
* Revision Date Author Desc
* 1.0.0 2023/07/12 Alex build this file
******************************************************************************
*/
#ifndef __KEY_H__
#define __KEY_H__
#include "define.h"
extern bit Key_Press_irq;
extern bit Key_Press_ll_irq_led;
extern bit Key_Press_ll_irq;
extern bit Pattern_TX_Flag;
#define Vox_TX_Pattern_Tim 24
#define Vox_TX_Interval 5 //Vox¶¨Ê±·¢ËÍÖ¸Áîʱ¼ä¼ä¸ô
#ifdef KEY_ENABLE
//extern bit Key_Press_short_irq;
//extern bit Key_Press_short_irq1;
//extern bit Key_Press_l_irq;
//extern bit Key_Press_ll_irq;
//extern bit Key_l_Flag;
#if 0
typedef enum {
KEY_EVENT_Empty = 0x00,
KEY_EVENT_SHORT, //Key short press(60ms-1s) interrupt flag
KEY_EVENT_L_2S, //Key long press for 2/3s interrupt flag
KEY_EVENT_LL_8S, //Key super long press for 8s interrupt flag
}KEY_EVENT_E;
extern idata KEY_EVENT_E Event_key;
#endif
extern void Key_Handler(void );
#endif
#endif