Skip to content
Commit b5b5d6e7 authored by Lingkai Dong's avatar Lingkai Dong Committed by Rob Walton
Browse files

littlefs: Update HAL flash API usage



MCU-Driver-HAL's flash API has been updated to a new programming model
based on a vtable. The instantiation and initialization of flash
are now platform-specific, but once it's done subsequent API calls on
the vtable object are fully generic. This commit updates the flash API
usage in the littlefs example.

To allow the littlefs example to potentially be built and run on
different platforms, we separate the main application (`main.c`) and
Corstone-300 flash initialization (`platforms/flash_cs300.c`).

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent 6263b8d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment