Finally, rewrote bootrom and flasher program, much faster now

This commit is contained in:
roel@libnfc.org 2013-02-28 15:11:52 +00:00
commit 28fdb04fd8
38 changed files with 311 additions and 1032 deletions

View file

@ -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

View file

@ -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 {