-
Notifications
You must be signed in to change notification settings - Fork 0
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
i2c module design #22
Comments
|
I would try to design for the case where you have 2 state estimation threads running in parallel (as seems to be done in some redundant configurations I was looking at), one for each IMU |
They say in that post I linked, give it a pointer to a data buffer (presumably for the read data), but this obviously begs the question of "how does the calling task know that the buffer it passed has been filled". I suppose you could ship a semaphore along with it?
|
update: board respin puts only 1 i2c device on each i2c bus, and each device has its own handler thread so there will be no multithreaded i2c conflicts. task scope decrease!! this module no longer needs to worry about multiple threads accessing the same bus |
see #5
Provide an interface for reading/writing i2c. Essentially wrap the stm32 HAL calls and configuration, but also consider how to make this rtos-friendly for our purposes. It should be using interrupt-based i2c (not polling). this will be mostly copied over from the "my2c" module from last year, but we want to improve that interface, and tailor it to this project (since my2c is just braindead copypasted from the pic18 projects which are quite different)
Things to figure out:
The text was updated successfully, but these errors were encountered: