Skip to content
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

cpu/esp*: Tracking refactoring of ESP MCU implementations #10658

Open
7 of 31 tasks
gschorcht opened this issue Dec 27, 2018 · 2 comments
Open
7 of 31 tasks

cpu/esp*: Tracking refactoring of ESP MCU implementations #10658

gschorcht opened this issue Dec 27, 2018 · 2 comments
Assignees
Labels
Area: cpu Area: CPU/MCU ports Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: tracking The issue tracks and organizes the sub-tasks of a larger effort

Comments

@gschorcht
Copy link
Contributor

gschorcht commented Dec 27, 2018

Description

There are already parts of MCU implementations for ESP8266 and ESP32 SoCs which are almost identical or at least very similar. Examples are the implementations of

  • context handling, context switching and low level interrupt handling (cpu/esp*/vendor/xtensa/*)
  • ESP-NOW netdev driver and interface (cpu/esp*/esp-now)

All other parts are completely different at the moment, since ESP32 and ESP8266 use SDKs with libraries which are completely different. However, with the ESP8266 RTOS SDK version under development, it seems that upcoming SDK versions for the ESP8266 will be at least partially compatible with the ESP-IDF for ESP32.

Therefore, it is very likely that both MCUs can use more and more the same code base. This issue is intended to track the modules that can be refactored designed to use the same code base and their progress.

Update With the reimplementation of the ESP8266 port based on the ESP8266 RTOS SDK in PR #11108 it became possible to deduplicate a lot. The code in PR #11108 was already prepared for this deduplication.

Refactored modules

Refactoring prerequisites / steps

PR dependencies

cpu/esp*/esp-now depends on #10581, #9917

@gschorcht gschorcht self-assigned this Dec 27, 2018
@gschorcht gschorcht changed the title cpu/esp*: tracking issue for refactoring of ESP MCU implementations cpu/esp*: Tracking refactoring of ESP MCU implementations Dec 27, 2018
@gschorcht gschorcht added Platform: ESP Platform: This PR/issue effects ESP-based platforms Area: cpu Area: CPU/MCU ports Type: tracking The issue tracks and organizes the sub-tasks of a larger effort labels Dec 27, 2018
@phillaverdiere
Copy link

I am triaging older issues. Can this one be closed?

@gschorcht
Copy link
Contributor Author

gschorcht commented Nov 26, 2019

Now that PR #11108 has been merged, there are a lot of other possible code deduplications that are not listed here yet. I have to update the list and would leave the tracking issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: cpu Area: CPU/MCU ports Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: tracking The issue tracks and organizes the sub-tasks of a larger effort
Projects
None yet
Development

No branches or pull requests

3 participants