Skip to content

GPIO Button Driver and Capture Trigger #5

@mu2d2

Description

@mu2d2

Implement GPIO input handling for a momentary push button that will trigger the OCR capture pipeline. Uses either a kernel IRQ handler or userspace libgpiod edge detection. Includes software debounce logic.

DoD:

  • Physical button wired to a GPIO pin
  • Button press detected via IRQ or libgpiod
  • Software debounce prevents multiple triggers from a single press (debounce window documented)
  • Button event is communicated to userspace via device node, Unix socket, or signal
  • Test program demonstrates: press button creates event logged with timestamp to syslog
  • 20 consecutive presses produce exactly 20 events
  • GPIO pin conflict check documented (no conflict with I2C, SPI, UART)
  • Source committed with Yocto recipe integrating into the image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions