-
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
periph: remove dev_enums.h #7941
Comments
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. |
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:
|
Yes, you will certainly :-) |
@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? |
@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). |
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? |
Just FYI I am working on updating the uart config for the lm4f120 based off @danpetry work. |
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. |
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. |
@haukepetersen @MrKevinWeiss what is the state on this? |
Ahh yes, one of my first riot tasks still not done :) |
It seems like the The Both of those boards are obsolete. Maybe we can just hardcode UART_0 for the lm4f120 as the The lpc might take a bit more. |
what he said :-) |
This is on the list, as soon as I put out all the fires I will get to it... or maybe find a student 👿 |
The
drivers/include/periph/dev_enums.h
file was introduced for backwards compatibility when we changed the style of doing the board configuration inperiph_conf.h
some time ago. Most of the periph drivers are remodeled by now, though some are open. Except thei2c
drivers, which will be remodeled while reworking the complete interface, the following drivers need adaption:timer:
uart:
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...
The text was updated successfully, but these errors were encountered: