Northeastern-Electric-Racing / Cerberus

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

[Interface] - Create an MPU Interface #112

Closed nwdepatie closed 6 months ago

nwdepatie commented 6 months ago

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 and mpu.c that expose a logical interface for interacting with the hardware onboard the MPU. These include:

  1. Debug LEDs
  2. EEPROM (I2C)
  3. Temperature Sensor (I2C)
  4. IMU (I2C)
  5. Pedal ADCs