Finally, rewrote bootrom and flasher program, much faster now
This commit is contained in:
@@ -18,4 +18,7 @@
|
||||
#include <at91sam7s512.h>
|
||||
typedef unsigned char byte_t;
|
||||
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,15 +23,6 @@ typedef BYTE uint8_t;
|
||||
#define PACKED __attribute__((packed))
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint32_t cmd;
|
||||
uint32_t arg[3];
|
||||
union {
|
||||
uint8_t asBytes[48];
|
||||
uint32_t asDwords[12];
|
||||
} d;
|
||||
} PACKED HidCommand;
|
||||
|
||||
#define USB_CMD_DATA_SIZE 512
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user