#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define DEVICE_NAME "bb"
#define bb_MAJOR 231
#define A S3C2410_GPB0
#define B S3C2410_GPB1
#define C S3C2410_GPB4
#define D S3C2410_GPG11
#define ADDO S3C2410_GPH6
#define ADDO_IN S3C2410_GPH6_INP
#define ADSK S3C2410_GPH7
#define ADSK_OUT S3C2410_GPH7_OUTP
static int time=2;
static int devicecount=0; //计数器,防止被多个人多次打开int zheng[]={0x08,0x0c,0x04,0x06,0x02,0x03,0x01,0x09};
int ni[]={0x09,0x01,0x03,0x02,0x06,0x04,0x0c,0x08};
static void Re()
{
s3c2410_gpio_cfgpin(A,S3C2410_GPB0_OUTP);
s3c2410_gpio_setpin(A,0);
s3c2410_gpio_cfgpin(B,S3C2410_GPB1_OUTP);
s3c2410_gpio_setpin(B,0);
s3c2410_gpio_cfgpin(C,S3C2410_GPB4_OUTP);
s3c2410_gpio_setpin(C,0);
s3c2410_gpio_cfgpin(D,S3C2410_GPG11_OUTP);
s3c2410_gpio_setpin(D,0);