Skip to content

Commit 3305d59

Browse files
committed
WIP: wifi: cm4: override default firmware filesystem
1 parent 7805a69 commit 3305d59

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,15 @@ void arduino::WiFiClass::MACAddress(uint8_t *mac_address)
238238

239239
#define WIFI_FIRMWARE_PATH "/wlan/4343WA1.BIN"
240240

241+
#if defined(CORE_CM4)
242+
#include "QSPIFBlockDevice.h"
243+
mbed::BlockDevice *mbed::BlockDevice::get_default_instance()
244+
{
245+
static QSPIFBlockDevice default_bd(PD_11, PD_12, PE_2, PF_6, PF_10, PG_6, QSPIF_POLARITY_MODE_1, 40000000);
246+
return &default_bd;
247+
}
248+
#endif
249+
241250
bool firmware_available = false;
242251

243252
#include "wiced_filesystem.h"

0 commit comments

Comments
 (0)