Closed maclobdell closed 5 years ago
@davidsaada @yossi2le please review this. What will happen if more than a single component will be enabled in the same target? What will happen if SPIF is not enabled?
please review this. What will happen if more than a single component will be enabled in the same target? What will happen if SPIF is not enabled?
Indeed problematic. I think this example should be modified to use BlockDevice's get_default_instance
, which practically does the same. See here for more details.
@dannybenor @davidsaada Can we get a fix in for this asap please ?
@adbridge Will handle it on Sunday.
@davidsaada Don't forget any fixes need to go to the 5.11.-oob branch
@maclobdell Please close this PR. Created #78 using the appropriate (and instantiated block device for the board).
Can we get block device constructors for multiple devices in this example? I had to make these changes while testing this example with a Quad SPI Flash. It worked! I thought it would be nice to just have the constructors for all the common block device types.
I did a full test with DISCO_L475VG_IOT01A.
Compiled successfully for K64F (SD), and USI_WM_BN_BM_22 (SPIF)