whycyhl
2022-05-05 94861120b14313f81fc666e612c48c9e8a81f1e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/************************** Copyright (c) **********************************
**                 FUZHOU FUGUANG ELECTRONICS Co.,LTD.
**                        ¸£Öݸ£¹âµç×ÓÓÐÏÞ¹«Ë¾
**                       http://www.fuguang.com
**
**-------------- File Info -------------------------------------------------
** File name:            KeyBoard_Driver.h
** Last modified Date:  2008-11-16
** Last Version:        1.0
** Descriptions:        KeyBoard Drivers lib
**
**--------------------------------------------------------------------------
** Created by:            mxpopstar
** Created date:        2008-11-16
** Version:                1.0
** Descriptions:        The original version
**
**--------------------------------------------------------------------------
** Modified by:            mxpopstar
** Modified date:        2008-11-20
** Version:
** Descriptions:        KeyBoard Drivers lib
**
***************************************************************************/
//--------------------------------------------------------------------------------------------------
#ifndef KeyBoardDri_H
#define KeyBoardDri_H
//--------------------------------------------------------------------------------------------------
#define     ROK4_0       !(PINA & (1<<PA0))
#define     ROK3_0       !(PINA & (1<<PA1))
#define     ROK2_0       !(PINA & (1<<PA2))
#define     ROK1_0       !(PINA & (1<<PA3))
#define     ROK6_0       !(PINA & (1<<PA4))
#define     ROK5_0       !(PINA & (1<<PA5))
#define     ROK7_0       !(PINA & (1<<PA6))
//--------------------------------------------------------------------------------------------------
#define     ROK4_1       (PINA & (1<<PA0))
#define     ROK3_1       (PINA & (1<<PA1))
#define     ROK2_1       (PINA & (1<<PA2))
#define     ROK1_1       (PINA & (1<<PA3))
#define     ROK6_1       (PINA & (1<<PA4))
#define     ROK5_1       (PINA & (1<<PA5))
#define     ROK7_1       (PINA & (1<<PA6))
//--------------------------------------------------------------------------------------------------
unsigned char GetKeyPress(void);
unsigned char GetKey(void);
void InitIO_KeyBoard(void);
unsigned char GetVolRange(void);
unsigned char GetVolParm(void);//2016-3-16Ôö¼Ó
 
#endif
//