diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-03-01 07:17:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-03-01 07:17:45 +0100 |
commit | 3e344a4cc1497ed87fd083a2a17361d815d32e5d (patch) | |
tree | 74ca781283ee6d2e76349d57db6cfeeb26bb8d2a /libk8055/libk8055.c | |
parent | 98e534e051713392fffe7ce59cbfb4188fba0f2a (diff) | |
download | k8055-3e344a4cc1497ed87fd083a2a17361d815d32e5d.zip k8055-3e344a4cc1497ed87fd083a2a17361d815d32e5d.tar.gz |
code move
Diffstat (limited to 'libk8055/libk8055.c')
-rw-r--r-- | libk8055/libk8055.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index e48a29f..00528ca 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -92,7 +92,6 @@ #define K8055_IPID 0x5500 #define VELLEMAN_VENDOR_ID 0x10cf -#define K8055_MAX_DEV 4 #define USB_OUT_EP 0x01 /* USB output endpoint */ #define USB_INP_EP 0x81 /* USB Input endpoint */ @@ -117,9 +116,6 @@ /* set debug to 0 to not print excess info */ static int debug = 0; -static struct k8055_dev k8055d[K8055_MAX_DEV]; -static struct k8055_dev* curr_dev; - /* Actual read of data from the device endpoint, retry READ_RETRY times if not responding ok */ static int k8055_read( struct k8055_dev* dev ) { if( dev->dev_no==0 ) return K8055_ERROR; @@ -434,6 +430,11 @@ int set_counter_debounce_time( struct k8055_dev* dev, long counter, long debounc } /** Velleman API ***************************************************************************************************************************/ + +#define K8055_MAX_DEV 4 +static struct k8055_dev k8055d[K8055_MAX_DEV]; +static struct k8055_dev* curr_dev; + char* Version( void ) { return( VERSION ); } |