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

Driver Rewrite #15

Open
dimembermatt opened this issue Apr 10, 2022 · 0 comments
Open

Driver Rewrite #15

dimembermatt opened this issue Apr 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dimembermatt
Copy link
Owner

Getting to a point where driver API can be standardized in a nice way. This will break existing ABI and will be rc v0.3.0. This will likely be the final RC.
I am leaning towards the following design:

Example ADC Driver

adc_config_t // All drivers have a configuration struct
adc_t            // All drivers have a driver struct

// All driver inits return an error code defined in inc/error.h. An error header will be provided. This could be chained with a pre-initialized watchdog timer for performing actions on failed initialization.
Error_t adc_init(adc_config_t config, adc_t* adc);
...

We'll also swap the linux kernel coding conventions, since TM4CDrivers will eventually be extended into TM4CRTOS...

@dimembermatt dimembermatt added the enhancement New feature or request label Apr 10, 2022
@dimembermatt dimembermatt self-assigned this Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant