[embassy-usb] cdc-ncm pulls in xarxa which has `AtomicU32` which is not supported on all targets
Author: TristaanCreated Sep 27, 2026Updated Sep 27, 2026
Hello all,
The compilation on targets not supporting AtomicU32 fails on main, because xarxa-driver has an AtomicU32 dependency.
I want to compile embassy-usb for ATMEGA32U4 and it fails because of AtomicU32. I do not know how to go on about this so it is solved also for other targets that don't. One way would be to put CDC-NCM behind a cfg flag, the other one would be to introduce portable_atomics into xarxa, or both maybe.
my train of thought brings me more to the cfg flag, because not all MCUs have an ethernet MAC built-in and supported classes could be configurable, even bringing me to the idea that all class drivers could be optional (the one pulling in deps) like the HID one.
Please advise.
See related PR #7107
Source: embassy-rs/embassy