-
Notifications
You must be signed in to change notification settings - Fork 2k
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*: remove dependencies on GNRC for ESP network device drivers #12967
Conversation
What's with the GNRC dependencies in the driver code? |
@miri64 The fix can be tested without having the hardware. If the compilations succeed, there is no further dependency on I hope it is Ok, that I'm pushing another very small fix related to lwip with this PR. The call of |
Are there any? Hm, I will check again, but the compilations didn't complain. |
Indeed, when |
Could it happen that |
I suggest to put the |
|
Hm, es simple |
Yepp as a quick-fix this is also acceptable. However, I think in the long run the device / network interface initialization should be unified across all devices. |
Rather use |
I was a bit unsure whether Do you think that such a change would be good for this PR? I can do it. |
To be honest, I don't remember for what porpose the network devices have this |
The only other SoC-network device which has the init code not in |
I will do it in that way. The longer I'm crawling through |
I have removed the |
Mostly historical reasons. ^^" Hopefully, this will be a bit cleaner after @jia200x's rework :-) |
@miri64 have your comments been addressed? |
With this I end up with an empty (No IP in |
Which ones are you referring to? From what I can see above, I'd say yes. |
Yes. The tests are compilation tests only to prove that gnrc modules are not enabled if one of these netdev drivers is enabled. |
Alright, then I'd say everything works as expected. |
Yes, because it is not rebased onto a version with merged PR #12998. |
0cd199d
to
fc09a1a
Compare
@benpicco Please wait, I just squashed and pushed a wrong branch. I had cherry picks from other PR in my branch that were merged in the meantime. |
fc09a1a
to
208174a
Compare
@benpicco I have rebased and squashed. Everything is fine now. |
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.
Changes look good and a quick test showed no regressions.
@benpicco Thanks for reviewing, testing and merging. |
Contribution description
This PR removes the dependencies of ESP network device drivers on GNRC.
Testing procedure
The following compilations should still succeed:
esp_eth
:make BOARD=esp32-olimex-evb -C tests/shell
esp_now
:make BOARD=esp32-wroom-32 -C tests/lwip
esp_wifi
:USEMODULE=esp_wifi make BOARD=esp32-wroom-32 -C tests/lwip
Issues/PRs references
Fixes #12964
Prerequisite for PR #12931