DFU: towards a more complete implementation

* we now actually route the EP0 control requests in DFU mode to the
  correct handler (weak linker symbols are tricky)
* we now actually call code to read/write data from/to RAM/FLASH
This commit is contained in:
Harald Welte
2017-02-28 00:21:45 +01:00
parent edf9c9d322
commit 32852bc1d9
5 changed files with 108 additions and 13 deletions

View File

@@ -113,6 +113,7 @@
#define BOARD_USB_DFU
#define BOARD_DFU_BOOT_SIZE (16 * 1024)
#define BOARD_DFU_RAM_SIZE (2 * 1024)
#define BOARD_DFU_PAGE_SIZE 512
#define BOARD_DFU_NUM_IF 2