Skip to content

Commit

Permalink
Run astyle on top-level sources.
Browse files Browse the repository at this point in the history
The sources have ugly whitespace. Run astyle on them, ignoring those
in usb_lib/. Astyle version 2.01 (2.01-1 on Ubuntu 12.04) options were:

--indent=spaces=4
--style=java
--indent-namespaces
--pad-oper
--pad-header
--unpad-paren
--align-pointer=name
--indent-preprocessor
--lineend=linux

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
  • Loading branch information
astyle authored and Marti Bolivar committed Jul 20, 2012
1 parent b40eb25 commit bf5c3c8
Show file tree
Hide file tree
Showing 8 changed files with 847 additions and 884 deletions.
534 changes: 267 additions & 267 deletions dfu.c

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dfu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@
#include "common.h"

/* exposed types */
typedef u8*(*ClassReqCB)(u16);
typedef u8 *(*ClassReqCB)(u16);

/* exposed structs */
typedef struct _DFUStatus {
u8 bStatus;
u8 bwPollTimeout0;
u8 bwPollTimeout1;
u8 bwPollTimeout2;
u8 bState; /* state of device at the time the host receives the message! */
u8 iString;
u8 bStatus;
u8 bwPollTimeout0;
u8 bwPollTimeout1;
u8 bwPollTimeout2;
u8 bState; /* state of device at the time the host receives the message! */
u8 iString;
} DFUStatus;

typedef enum _PLOT {
BEGINNING,
MIDDLE,
END,
WAIT
}PLOT;
BEGINNING,
MIDDLE,
END,
WAIT
} PLOT;


/*** DFU bRequest Values ******/
Expand Down Expand Up @@ -104,10 +104,10 @@ void dfuUpdateByReset(void);
void dfuUpdateByTimeout(void);

/* usb callbacks */
u8* dfuCopyState(u16);
u8* dfuCopyStatus(u16);
u8* dfuCopyDNLOAD(u16);
u8* dfuCopyUPLOAD(u16);
u8 *dfuCopyState(u16);
u8 *dfuCopyStatus(u16);
u8 *dfuCopyDNLOAD(u16);
u8 *dfuCopyUPLOAD(u16);

void dfuCopyBufferToExec(void);
bool checkTestFile(void);
Expand Down
Loading

0 comments on commit bf5c3c8

Please sign in to comment.