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

Motor Driver rewrite #88

Open
SuperChamp234 opened this issue Oct 21, 2023 · 2 comments
Open

Motor Driver rewrite #88

SuperChamp234 opened this issue Oct 21, 2023 · 2 comments
Assignees

Comments

@SuperChamp234
Copy link
Member

The MCPWM driver has been redesigned, and the legacy driver has been depreciated.

The new MCPWM driver is object-oriented, where most of the MCPWM submodule has a driver object associated with it. The driver object is created by factory function. IO control function always needs an object handle, in the first place.

The component currently uses the legacy drivers, which needs to be updated.

More info: https://docs.espressif.com/projects/esp-idf/en/v5.1.1/esp32/migration-guides/release-5.x/5.0/peripherals.html#adc-oneshot-continuous-mode-drivers

@VedantParanjape
Copy link
Member

Object oriented driver in a C code base ?

@SuperChamp234
Copy link
Member Author

Object oriented driver in a C code base ?

Yes, we must create interfaces for the MCPWM timer, comparators, generators and operator ourselves which were previously abstracted by idf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants