From ebce8b7dd2867d0f8126fd1c86df0b6b95024535 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Wed, 28 Dec 2011 01:19:02 +0100 Subject: [PATCH] Constants moved to globals.h. --- client/clcc.c | 4 +++- client/demo.c | 4 +++- client/ledcube.h | 9 +++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/client/clcc.c b/client/clcc.c index 33df9b2..cf4ec46 100644 --- a/client/clcc.c +++ b/client/clcc.c @@ -16,7 +16,9 @@ #include #include -#include "../firmware/globals.h" /* custom request numbers */ +#include "globals.h" + +#include "../firmware/globals.h" // External functions to control the ledcube. extern void lc_setFrame(unsigned long); diff --git a/client/demo.c b/client/demo.c index e1b4053..01e8125 100644 --- a/client/demo.c +++ b/client/demo.c @@ -15,7 +15,9 @@ #include #include -#include "../firmware/globals.h" /* custom request numbers */ +#include "globals.h" + +#include "../firmware/globals.h" extern int lc_setFrame(unsigned long); extern int lc_setMode(int); diff --git a/client/ledcube.h b/client/ledcube.h index 3296b8b..28f9154 100644 --- a/client/ledcube.h +++ b/client/ledcube.h @@ -12,17 +12,14 @@ #ifndef __LEDCUBE_H_INCLUDED__ #define __LEDCUBE_H_INCLUDED__ -#define NOT_CONNECTED_ERROR -1 -#define DEVICE_NOT_FOUND_ERROR -2 - -#define SUCCESSFULLY_CONNECTED 1 - #include #include /* this is libusb */ #include "opendevice.h" /* common code moved to separate module */ -#include "../firmware/globals.h" /* custom request numbers */ +#include "globals.h" + +#include "../firmware/globals.h" #include "../firmware/requests.h" /* custom request numbers */ #include "../firmware/usbconfig.h" /* device's VID/PID and names */