forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Milestone
Description
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.
Reactions are currently unavailable