Answering my own question: the SDK already contains a solution to this! https://github.com/raspberrypi/pico-sdk ... .h#L63-L64
Statistics: Posted by jags84 — Sun May 05, 2024 12:32 am