-
Notifications
You must be signed in to change notification settings - Fork 4
Move to default_instance QSPIF #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Memory usage change @ 439c3e2
Click for full report table
Click for full report CSV
|
@manchoz is this still needed? |
439c3e2
to
d0f4141
Compare
Memory usage change @ d0f4141
Click for full report table
Click for full report CSV
|
@pennam yes, it is! It is needed for all the scenarios where OTA needs to be done via media other than WiFi (USB, Ethernet, etc.). When |
@pennam please, review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manchoz could you please have a look to this commit pennam@7f37a53 ? Doing like this we are keeping compatibility with older core versions and using get_default_instance()
for the new ones. I've also added a call to the init()
method.
@@ -47,13 +43,7 @@ Arduino_Portenta_OTA_QSPI::Arduino_Portenta_OTA_QSPI(StorageTypePortenta const s | |||
|
|||
bool Arduino_Portenta_OTA_QSPI::init() | |||
{ | |||
#if !defined (COMPONENT_4343W_FS) | |||
qspi_bd = new QSPIFBlockDevice(PD_11, PD_12, PF_7, PD_13, PF_10, PG_6, QSPIF_POLARITY_MODE_1, 40000000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we remove completely this line we are dropping compatibility for older core versions ( < 2.3.1 )
return false; | ||
} | ||
#endif | ||
auto qspi_bd = mbed::BlockDevice::get_default_instance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory we still need to call the init function here, even if we are using get_default_instance()
superseded by #21 |
No description provided.