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

Add ETH support to PIC32 boards #2890

Merged
merged 3 commits into from Oct 3, 2022

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Sep 29, 2022

  • pic32mz_periph_create() now creates eth device if ETH_0 is specified
  • olimex-pic32-hmz144 now includes config settings for RMII/MII
  • olimex-pic32-emz64 includes RMII settings and also gets configuration for on-bard LAN8710 (interrupt pin, and reset pin)

#if MYNEWT_VAL(ETH_0)
int rc;
rc = pic32_eth_init(&eth0_cfg);
assert(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks odd, assert(rc == 0) maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Polishing before commit not always works as intended.
Fixed.

pic32mz_periph_create() now can create ETH device
if ETH_0 is set.
Add configuration for ethernet driver
Change adds config options for ethernet.
@apache-mynewt-bot
Copy link

Style check summary

No suggestions at this time!

@kasjer kasjer merged commit 9509164 into apache:master Oct 3, 2022
@kasjer kasjer deleted the kasjer/pic32-bsp-add-eth branch October 3, 2022 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants