Skip to content

Add generic IOCTL-like method to board #10800

@bablokb

Description

@bablokb

There are a number of boards available that have special features not well covered by existing modules. Or some attributes are transient during boot and must be captured very early during board initialization. Another example is updating large LUTs.

Instead of inflating the board module with very specific methods, it might be better to add a generic method that is modeled more like the ioctl system call on Linux (note: I wouldn't call it ioctl). The method could take an int and optional bytes and return bytes. As far as I understand there could be a noop default using MP_WEAK so most boards would not have to implement the method.

If this is something you think is useful I would try to implement a first draft version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions