Northeastern-Electric-Racing / Cerberus

Our FreeRTOS-based vehicle control application
1 stars 0 forks source link

Mutex I2C bus #81

Closed nwdepatie closed 9 months ago

nwdepatie commented 11 months ago

We need to figure out a nice framework for mutexing the I2C bus such that multiple processes can safely access the bus. This should probably be in the form of creating a wrapper struct for hi2c structs with a CMSIS-OS mutex attached, and every time we access the I2C bus in the monitoring tasks we need to check the mutex.

nwdepatie commented 11 months ago

https://www.keil.com/pack/doc/CMSIS/RTOS2/html/group__CMSIS__RTOS__MutexMgmt.html https://stackoverflow.com/questions/34524/what-is-a-mutex