Basic code for mk20dx256vlh7 flashing

This commit is contained in:
Jacob Alexander 2015-05-25 17:23:18 -07:00
parent 1acbc97e98
commit 02b919a4cb
8 changed files with 158 additions and 90 deletions

View file

@ -30,7 +30,15 @@
#ifndef USB_DFU_TRANSFER_SIZE
#define USB_DFU_TRANSFER_SIZE FLASH_SECTOR_SIZE
// Sector size is the same as the program flash size
#if defined(_mk20dx128vlf5_)
#define USB_DFU_TRANSFER_SIZE FLASH_SECTOR_SIZE
// Sector size is double the program flash size
#elif defined(_mk20dx256vlh7_ )
#define USB_DFU_TRANSFER_SIZE FLASH_SECTOR_SIZE / 2
#endif
#endif
#define USB_FUNCTION_DESC_DFU_DECL \