Closed JohnVidler closed 1 year ago
DEVICE_USB_ERROR is infact used:
I can update the driver to panic against DEVICE_PERIPHERAL_ERROR
@finneyj it would be good to revisit hardware builds to catch breaking changes like these.
Also @JohnVidler, please bear in mind that CODAL is used by many other devices supported in MakeCode.
Removed as its never used, and repurposed it for the base error address DEVICE_PERIPHERAL_ERROR, from which on-board periperhal errors can be numbered, as required, for implementing boards.
The Micro:bit v2, for example now has a
MicroBitPanic
enum withACCELEROMETER_ERROR = PanicCode::DEVICE_PERIPHERAL_ERROR + 1, // Aka. Panic 51
available for device specific peripheral errors.Note: the entire 50->59 space is available for board-specific errors.
See also: