libtock-c icon indicating copy to clipboard operation
libtock-c copied to clipboard

gpio-async: convert to ywf

Open ppannuto opened this issue 5 months ago • 0 comments

Compile-tested only, fairly straight conversion.

There's a mild deviation from the style guide with the wait_for_generic_command instead of 6 different wait_for_[set|clear|...] methods. It mirrors how the driver itself is implemented, and I think is a cleaner design and easier to follow than lots of redundant syscall methods.

More generally, I suspect as we port more of these we may find it makes sense to rethink the guidance around ywf methods, but I'm not a that level of confident with just this one.

ppannuto avatar Aug 08 '25 19:08 ppannuto