Northeastern-Electric-Racing / Northeastern-Electric-Racing/Embedded-Base

[Driver] - Make Pi4io3 driver platform agnostic

Open
#159 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Current Features

this driver depends on stm32 HAL

Desired Additional Features

We want these to work with all potential hardware. This involves replacing HAL specific code with generalized code that utilized function pointers to use HAL functionality. The way in which we want to handle this is outlined in this doc under the "Driver Generalization" header.

Also a part of this ticket, find all references to this driver in Shepherd and Cerberus, and fix them to accommodate the new driver structure. A good way to check this is to update your embedded-base submodule to reflect the changes made to this driver, and then try building shepherd and cerberus. If they relied on this device, they will likely fail to build unless you make the appropriate changes

Screenshots (as needed)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Pi4io3 driver and the linked Driver Generalization guidance, then find all references to this driver in Shepherd and Cerberus. Update the embedded-base submodule and build Shepherd and Cerberus to identify remaining integration failures; done means the driver no longer depends on STM32 HAL-specific code and both projects build with the new structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.