Skip to content

Commit 45b07d6

Browse files
committed
Changed secondary_bd declaration to use new default BlockDevice API
1 parent 44dcb52 commit 45b07d6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

flash_map.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,8 @@
66
*/
77

88
#include "BlockDevice.h"
9-
#include "QSPIFBlockDevice.h"
10-
#include "SlicingBlockDevice.h"
119

12-
QSPIFBlockDevice qspi_bd(QSPI_FLASH1_IO0, QSPI_FLASH1_IO1, QSPI_FLASH1_IO2, QSPI_FLASH1_IO3,
13-
QSPI_FLASH1_SCK, QSPI_FLASH1_CSN, QSPIF_POLARITY_MODE_0, MBED_CONF_QSPIF_QSPI_FREQ);
14-
15-
SlicingBlockDevice raw_binary_bd(&qspi_bd, 0x200000, (0x200000 + 819200));
16-
17-
mbed::BlockDevice* mcuboot_secondary_bd = (mbed::BlockDevice*) &raw_binary_bd;
10+
mbed::BlockDevice* mcuboot_secondary_bd = mbed::BlockDevice::get_default_instance();
1811

1912
void mbed_mcuboot_user_init(void) {
2013
mcuboot_secondary_bd->init();

0 commit comments

Comments
 (0)