Skip to content

Commit 6f0efd3

Browse files
committed
Move FlashIAP declaration from dfu to default_bd
1 parent dfa2c79 commit 6f0efd3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/dfu/usbd_dfu_flash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ uint8_t *Flash_If_Read(uint8_t * src, uint8_t * dest, uint32_t Len);
5353
uint16_t Flash_If_DeInit(void);
5454
uint16_t Flash_If_GetStatus(uint32_t Add, uint8_t Cmd, uint8_t * buffer);
5555

56-
FlashIAP flash;
56+
extern FlashIAP flash;
5757
mbed::BlockDevice* qspi_flash = mbed::BlockDevice::get_default_instance();
5858
mbed::BlockDevice* dfu_secondary_bd = get_secondary_bd();
5959

default_bd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ mbed::BlockDevice* BlockDevice::get_default_instance()
393393
return &default_bd;
394394
}
395395

396+
FlashIAP flash;
397+
396398
#else // MCUBOOT_APPLICATION_HOOKS
397399

398400
#include "BlockDevice.h"

0 commit comments

Comments
 (0)