Merge pull request #198 from lucianomartin/feature/multiple_spispecs

Allow DFU to support multiple flash devices
This commit is contained in:
Luciano Martin
2021-06-28 16:10:30 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ lib_xua Change Log
* CHANGED: HID event ID from list to bit and byte location in HID Report
* CHANGED: Interface to UserHIDRecordEvent()
* ADDED: Support for multiple flash specs defined by DFU_FLASH_DEVICE
1.3.0
-----

View File

@@ -90,9 +90,9 @@ int flash_cmd_enable_ports()
#ifdef DFU_FLASH_DEVICE
#ifdef QUAD_SPI_FLASH
result = fl_connectToDevice(&p_qflash, flash_devices, 1);
result = fl_connectToDevice(&p_qflash, flash_devices, sizeof(flash_devices) / sizeof(fl_QuadDeviceSpec));
#else
result = fl_connectToDevice(&p_flash, flash_devices, 1);
result = fl_connectToDevice(&p_flash, flash_devices, sizeof(flash_devices) / sizeof(fl_DeviceSpec));
#endif
#else
/* Use default flash list */