Add GpioSensor to read GPIO states.

This change introduces a new GpioSensor class that uses the GpioCollector to read the state of a specified GPIO pin.

The GpioSensorConfig proto is added to define the sensor name and the corresponding GPIO pin name.

The SensorCollector is updated to accept a GpioCollector instance in its options, allowing GpioSensors to be created and managed within the SensorCollector framework.

#tlbmc
#tlbmc-gpio

PiperOrigin-RevId: 847940784
Change-Id: I017220d35cbc4a4a81821787fdc98895436a2878
1 file changed
tree: cd7faabf4558464515592d7bfe25f9bde5660510
  1. linux/
  2. .gitmodules