-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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
general/include/lsm6dso.h
Outdated
*/ | ||
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); |
There was a problem hiding this comment.
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
* moved system into py module * resctructured dir * openOCD install
* 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
Waiting till Cerb migration is done |
* 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]>
* generalized funcs * changed function names * fixed naming * fully generalized * removed i2c handle * imu pointer in param * fixed header * #162-fixed param
Changes
Made function wrappers for HAL specific driver functions, and added function pointers to lsm6dso_t.
Closes #156