#include <setupapi.h>
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
BOOL UsbConnect(void);
-#else
-#include <proxusb.h>
#endif
+#include <proxusb.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include "flash.h"
#include "elf.h"
static uint32_t ExpectedAddr;
static uint8_t QueuedToSend[256];
-static bool AllWritten;
#define PHYSICAL_FLASH_START 0x100000
#define PHYSICAL_FLASH_END 0x200000
memcpy(c.d.asBytes, temp_buf+240, 16);
SendCommand(&c);
WaitForAck();
-
- AllWritten = true;
}
void LoadFlashFromFile(const char *file, int start_addr, int end_addr)