Implementing async APIs for microcontroller peripherals
async/await support has been a long time coming in the atsamd-hal project. Some time around 2020, I discovered embassy , a comprehensive framework that exploits asynchronous programming on a wide range of microcontrollers. It immediately appealed to me; to my brain, it made complete sense to harness cooperative multitasking on small, single-core systems. It enables you to write seemingly…