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

periph: remove dev_enums.h #7941

Closed
7 tasks
haukepetersen opened this issue Nov 6, 2017 · 14 comments · Fixed by #15068
Closed
7 tasks

periph: remove dev_enums.h #7941

haukepetersen opened this issue Nov 6, 2017 · 14 comments · Fixed by #15068
Labels
Area: drivers Area: Device drivers State: don't stale State: Tell state-bot to ignore this issue Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Comments

@haukepetersen
Copy link
Contributor

haukepetersen commented Nov 6, 2017

The drivers/include/periph/dev_enums.h file was introduced for backwards compatibility when we changed the style of doing the board configuration in periph_conf.h some time ago. Most of the periph drivers are remodeled by now, though some are open. Except the i2c drivers, which will be remodeled while reworking the complete interface, the following drivers need adaption:

timer:

  • samd21
  • saml21 (best to unify these two into sam0_common in the same process)
  • lm4f120
  • lpc1768

uart:

  • cc2538
  • lm4f120
  • lpc1768

I did not really check the open PRs though, so there might be a fix for some of the mentioned in the pipeline already. Please check before starting to work on any of these...

@haukepetersen haukepetersen added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: drivers Area: Device drivers labels Nov 6, 2017
@danpetry
Copy link
Contributor

danpetry commented Nov 22, 2017

No fixes in open PRs that I can see. Related open PRs are as follows:

I'll read these before starting work on the relevant driver.

@danpetry
Copy link
Contributor

danpetry commented Dec 1, 2017

I think I also need to change the periph_conf files for the boards that have the above cpus on them. Will include the changes for those in the PR I submit for each cpu peripheral.

These are:

cc2538:

  • openmote-cc2538
  • cc2538dk

@haukepetersen
Copy link
Contributor Author

I think I also need to change the periph_conf files for the boards that have the above cpus on them

Yes, you will certainly :-)

@danpetry
Copy link
Contributor

danpetry commented Dec 13, 2017

@haukepetersen there are aliases for UART_X called UART_X_DEV in the cc2538 driver. I can't see any functional purpose that they serve, but am I missing something? Can they be taken out, i.e. replaced with just UART_X?

@danpetry
Copy link
Contributor

danpetry commented Jan 4, 2018

@smlng for the 2538, are the above boards the only ones with this CPU? Also, would you mind testing the changes for the other boards once I've made them? (I only have the openmote at the moment).

@danpetry
Copy link
Contributor

danpetry commented Jan 8, 2018

Note for reviewer: now that I've removed the switch/case statement, device numbers outside the ones actually implemented can be used. They won't be caught by the default statement as before, and there's no value restriction on uart_t. What would be the effect of this?

@MrKevinWeiss
Copy link
Contributor

Just FYI I am working on updating the uart config for the lm4f120 based off @danpetry work.

@MrKevinWeiss
Copy link
Contributor

I think I will work on the UART for the lpc1768 next. There are some shared files that #6472 is working on but it seems to be in different sections.

@stale
Copy link

stale bot commented Aug 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Aug 10, 2019
@haukepetersen haukepetersen added State: don't stale State: Tell state-bot to ignore this issue and removed State: stale State: The issue / PR has no activity for >185 days labels Aug 26, 2019
@miri64
Copy link
Member

miri64 commented Jul 1, 2020

@haukepetersen @MrKevinWeiss what is the state on this?

@MrKevinWeiss
Copy link
Contributor

Ahh yes, one of my first riot tasks still not done :)

@MrKevinWeiss
Copy link
Contributor

It seems like the slwstk6220a board uses I2C0

The lm4f120 and lpc1768 use TIMER_x and UART_x.

Both of those boards are obsolete. Maybe we can just hardcode UART_0 for the lm4f120 as the uart_init asserts the uart==0 anyways. Then it will be similar to the nrf52dk I think.

The lpc might take a bit more.

@haukepetersen
Copy link
Contributor Author

what he said :-)

@MrKevinWeiss
Copy link
Contributor

This is on the list, as soon as I put out all the fires I will get to it... or maybe find a student 👿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers State: don't stale State: Tell state-bot to ignore this issue Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants