cpu/esp_common: use spli_flash_* funcs from ESP-IDF in periph/flash#18250
Merged
benpicco merged 5 commits intoRIOT-OS:masterfrom Jun 25, 2022
Merged
cpu/esp_common: use spli_flash_* funcs from ESP-IDF in periph/flash#18250benpicco merged 5 commits intoRIOT-OS:masterfrom
benpicco merged 5 commits intoRIOT-OS:masterfrom
Conversation
spli_flash* funcs from ESP-IDF in periph/flash6a9dd34 to
4394b3b
Compare
The MCU_* conditionals are inverted so that they can be tested for ESP8266. In all other cases the MCU is any ESP32x SoC
Updates `cpu/esp_common/periph/flash` for ESP-IDF 4.4. `spi_flash_*` functions for ESP32 are removed since these functions are now used from ESP-IDF.
esp32 vendor code and atwinc15x0 both define conflicting spi_flash_{read, write} functions. esp32 already have build-in WiFi, so it's unlikely to ever use this driver - just blacklist the architecture.
4394b3b to
94e7dbf
Compare
Contributor
Author
|
Rebased and now ready for review. I rearranged the changes a bit and split them into different commits to separate the core changes from the cleanup changes. The core changes are commits 94ceccb and fb2f080. All others are only cleanups (portable formatting in DEBUG messages and removing whitespaces). |
benpicco
approved these changes
Jun 25, 2022
Contributor
Author
|
@benpicco Thanks for reviewing and merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR is a split-off from PR #17841. With this PR, the
spi_flash_*functions of ESP-IDF are used and can therefore be removed fromcpu/esp_common/periph/flash.c. Additionally, theDEBUGoutputs are changed to be platform independent.This PR depends on PR #18249. To be compilable, it includes PR #18249 at the moment. The only commit of this PR is e8b4f55.
Testing procedure
Green CI
Issues/PRs references
Depends on PR #18249
Split-off from PR #17841