#ifndef __PINDEF_H__
#define __PINDEF_H__

#include "iodefine.h"

#define CAN_STB			P1_bit.no2
#define KEY_UP          P6_bit.no2
#define KEY_DOWN        P1_bit.no6
#define KEY_LEFT        P1_bit.no7
#define KEY_RIGHT       P6_bit.no3
#define KEY_MIDDLE      P3_bit.no0
#define KEY_XNP         P12_bit.no0
#define KEY_XNM         P12_bit.no5


#define KEYID_UP       1
#define KEYID_DOWN     2
#define KEYID_LEFT     3
#define KEYID_RIGHT    4
#define KEYID_MIDDLE   5
#define KEYID_XNP      6
#define KEYID_XNM      7
#define KEY_NUM        5



#define ADCH_IGN    0



#endif

