nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.02k stars 1.29k forks source link

Create Interface from LinuxGpioDriver #2581

Open LeStarch opened 5 months ago

LeStarch commented 5 months ago
F´ Version
Affected Component

Feature Description

Make an interface out of Drv/LinuxGpioDriver protocol. See #2255 for an example interface change set.

The following three ports should be pulled out of Drv::LinuxGpioDriver into Svc/Interfaces/GpioInterface.fppi such that other GPIO implementations can use it.

https://github.com/nasa/fprime/blob/a73bff28617b96736c0e3e222e4c6e1dea1c6f5e/Drv/LinuxGpioDriver/LinuxGpioDriver.fpp#L9

https://github.com/nasa/fprime/blob/a73bff28617b96736c0e3e222e4c6e1dea1c6f5e/Drv/LinuxGpioDriver/LinuxGpioDriver.fpp#L21

https://github.com/nasa/fprime/blob/a73bff28617b96736c0e3e222e4c6e1dea1c6f5e/Drv/LinuxGpioDriver/LinuxGpioDriver.fpp#L11

Note: annotations should be added to explain what each port does.