Right now we are manually making calls to hardware devices and HAL calls inside RTOS tasks. I think that we should abstract these a bit to provide a consolidated place for things like I2C Mutexing and any other state-based functionlity
Acceptance Criteria
This interface should build and cover all functionality that we are currently using for things onboard the PDU
Proposed Solution
Create an mpu.h and mpu.c that expose a logical interface for interacting with the hardware onboard the MPU. These include:
Description
Right now we are manually making calls to hardware devices and HAL calls inside RTOS tasks. I think that we should abstract these a bit to provide a consolidated place for things like I2C Mutexing and any other state-based functionlity
Acceptance Criteria
This interface should build and cover all functionality that we are currently using for things onboard the PDU
Proposed Solution
Create an
mpu.h
andmpu.c
that expose a logical interface for interacting with the hardware onboard the MPU. These include: