From 51635f5ffcc15dd3f74813741070283ba2ff2d1f Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 22 Jul 2022 14:26:44 +0200 Subject: [PATCH] Remove ArduinoCore-mbed backward compatible QSPI flash initialization --- src/Arduino_Portenta_OTA_QSPI.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Arduino_Portenta_OTA_QSPI.cpp b/src/Arduino_Portenta_OTA_QSPI.cpp index b1fc43d..b7ea6f4 100644 --- a/src/Arduino_Portenta_OTA_QSPI.cpp +++ b/src/Arduino_Portenta_OTA_QSPI.cpp @@ -46,11 +46,7 @@ Arduino_Portenta_OTA_QSPI::Arduino_Portenta_OTA_QSPI(StorageTypePortenta const s bool Arduino_Portenta_OTA_QSPI::init() { -#if defined (COMPONENT_4343W_FS) _bd_raw_qspi = mbed::BlockDevice::get_default_instance(); -#else - _bd_raw_qspi = new QSPIFBlockDevice(PD_11, PD_12, PF_7, PD_13, PF_10, PG_6, QSPIF_POLARITY_MODE_1, 40000000); -#endif if (_bd_raw_qspi->init() != QSPIF_BD_ERROR_OK) { Serial1.println("Error: QSPI init failure."); return false;