-
Notifications
You must be signed in to change notification settings - Fork 214
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
Analyze and improve public APIs for most common peripheral drivers #1318
Comments
I think I've found one area we can look at where we'll get good returns on our effort: timers. We currently have no shared API between timers, i.e TIMG and SYSTIMER are completely different and cannot be abstracted over, but in reality they both do the same things:
If we can abstract over this, I see several benefits:
We can discuss this in a meeting and begin to hash out a design, I already have some ideas. On top of that, I noticed that whilst we can initialize |
I'm picking up GPIO |
Closing in favour of #2010 |
I will likely update this issue with more information once we have discussed our plans a bit more, but in short I think it's time we start doing some top-down design of how we want our public APIs to look for the most common peripherals such as GPIO, I2C, SPI, UART, etc.
We should provide concrete methods for using these peripherals which do not rely on third-party traits. These traits should be implemented in addition to our native APIs, and should be feature gated.
The text was updated successfully, but these errors were encountered: