This function is tightly coupled to the state and behaviour of the scheduler, and is a core part of the runtime: to schedule a pending exception. So move it there.
Port of MicroPython to Microchip SAMD MCUs
Supports SAMD21 and SAMD51.
Features:
- REPL over USB VCP