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

Make Lsm6dso platform agnostic #162

Closed
wants to merge 20 commits into from
Closed

Conversation

caiodasilva2005
Copy link
Contributor

@caiodasilva2005 caiodasilva2005 commented Sep 28, 2024

Changes

Made function wrappers for HAL specific driver functions, and added function pointers to lsm6dso_t.

Closes #156

Copy link
Contributor

@dyldonahue dyldonahue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is sort of like a half review, i want to look at it more once i fix the clang thing so the diff is more readable. But i saw one thing that needs updating, should be pretty quick, and once thats fixed and i get clang fixed ill give it another look

*/
HAL_StatusTypeDef lsm6dso_init(lsm6dso_t *imu, I2C_HandleTypeDef *i2c_handle);
int lsm6dso_init(I2C_HandleTypeDef *i2c_handle, I2C_Read read_func, I2C_Write write_func);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I2C_HandleTypeDef is an stm32 HAL dependency. This should be removed form driver - can be hidden in the wrapper functions on the app later as a hardcoded parameter

general/src/lsm6dso.c Outdated Show resolved Hide resolved
@caiodasilva2005 caiodasilva2005 self-assigned this Oct 6, 2024
dyldonahue and others added 9 commits October 8, 2024 15:20
* moved system into py module

* resctructured dir

* openOCD install
* testing clang

* clanging rest

* idk weird error
* added flash and ftdi support

* ceanup

* add ftdi flash file

* flash ftdi and swd works

* usbip works

* serial works

* build on all cores

* review fixes

---------

Co-authored-by: Jack Rubacha <[email protected]>
* try add prietter enforce

* exclude vl6180x

* reformat and fixes

* more fixes

* try ignore again
@dyldonahue
Copy link
Contributor

Waiting till Cerb migration is done

jr1221 and others added 6 commits October 15, 2024 15:18
* wsl flash, serial work with confluence docs

* working debug

* fixup

* works on linux

* works again on windows

* flash and debug ftdi works on windows
* added sim code generation

* JSON definitions for most of YAML (still in progress)

* remove sneaky quotes

* created struct for constructor params

---------

Co-authored-by: Jack Rubacha <[email protected]>
* typer

* possible miniterm fix

* list --> ls

* fixed update path

* deprecated docker command + unspported cb handler

* fixed unsupport

---------

Co-authored-by: Jack Rubacha <[email protected]>
* Finished Refactoring LTC4015 Ticket

(cherry picked from commit 23300d2)

cherry picked commit

* Added Function Pointer as Argument

(cherry picked from commit 9a1a805)

cherry picked commit

* unrelated bug

---------

Co-authored-by: Daniel Nakhooda <[email protected]>
* deprecate YAML modules from init

---------

Co-authored-by: Jack Rubacha <[email protected]>
caiodasilva2005 added a commit that referenced this pull request Oct 27, 2024
caiodasilva2005 added a commit that referenced this pull request Oct 27, 2024
* generalized funcs

* changed function names

* fixed naming

* fully generalized

* removed i2c handle

* imu pointer in param

* fixed header

* #162-fixed param
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Driver] - Make lsm6dso driver platform agnostic
4 participants