Skip to content

Switch to gpiocdev-rs for GPIO uAPI v2 support? #92

Open
@eldruin

Description

@eldruin

Context:
Our gpio-cdev crate only supports GPIO uAPI v1, which has been deprecated in the kernel. There is a new crate gpiocdev which does support it in newer kernels.

Preliminary analysis of switching to the newer gpiocdev in no particular order:

  • Pro:
    • Supports GPIO uAPI v2 as well as v1 which is deprecated.
    • More active project.
    • Author is the author of the API in the Linux kernel.
    • gpiosim support.
  • Cons:
    • Porting effort.
    • Adds many dependencies.
    • Breaking change.
    • Outside of the rust-embedded org.

See rust-embedded/gpio-cdev#68

Metadata

Metadata

Assignees

No one assigned

    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