From: Tormod Volden <[email protected]> --- src/dfu.c | 9 --------- src/dfu.h | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/dfu.c b/src/dfu.c index 4bb30f9..e473784 100644 --- a/src/dfu.c +++ b/src/dfu.c @@ -24,15 +24,6 @@ #include <libusb.h> #include "dfu.h" -/* DFU commands */ -#define DFU_DETACH 0 -#define DFU_DNLOAD 1 -#define DFU_UPLOAD 2 -#define DFU_GETSTATUS 3 -#define DFU_CLRSTATUS 4 -#define DFU_GETSTATE 5 -#define DFU_ABORT 6 - #define INVALID_DFU_TIMEOUT -1 static int dfu_timeout = INVALID_DFU_TIMEOUT; diff --git a/src/dfu.h b/src/dfu.h index 4bf88e9..971b1bf 100644 --- a/src/dfu.h +++ b/src/dfu.h @@ -56,6 +56,14 @@ #define DFU_STATUS_ERROR_UNKNOWN 0x0e #define DFU_STATUS_ERROR_STALLEDPKT 0x0f +/* DFU commands */ +#define DFU_DETACH 0 +#define DFU_DNLOAD 1 +#define DFU_UPLOAD 2 +#define DFU_GETSTATUS 3 +#define DFU_CLRSTATUS 4 +#define DFU_GETSTATE 5 +#define DFU_ABORT 6 /* DFU interface */ #define DFU_IFF_DFU 0x0001 /* DFU Mode, (not Runtime) */ -- 1.7.0.4 _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
