2021-09-05 14:34:01 +08:00

31 lines
619 B
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.

#ifndef __KEY_H
#define __KEY_H
#include "common.h"
//////////////////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>IO<49>˿ڶ<CBBF><DAB6><EFBFBD>
#define KEY0 PFin(9)
#define KEY1 PFin(8)
#define KEY2 PFin(7)
#define KEY3 PFin(6)
//<2F><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
#define KEY0_DATA 1
#define KEY1_DATA 2
#define KEY2_DATA 3
#define KEY3_DATA 4
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern u8 keydown_data; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>º<EFBFBD><C2BA>ͷ<EFBFBD><CDB7>ص<EFBFBD>ֵ
extern u8 keyup_data; //<2F><><EFBFBD><EFBFBD>̧<EFBFBD>𷵻<EFBFBD>ֵ
extern u16 key_time;
extern u8 key_tem;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void KEY_Init(void); //IO<49><4F>ʼ<EFBFBD><CABC>
void key_scan(u8 mode); //<2F><><EFBFBD><EFBFBD>ɨ<EFBFBD><EFBFBD><E8BAAF>
#endif