aboutsummaryrefslogtreecommitdiff
path: root/ports/samd/mphalport.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/samd/mphalport.c')
-rw-r--r--ports/samd/mphalport.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ports/samd/mphalport.c b/ports/samd/mphalport.c
index 9f3105c69..49d8976e6 100644
--- a/ports/samd/mphalport.c
+++ b/ports/samd/mphalport.c
@@ -24,9 +24,8 @@
* THE SOFTWARE.
*/
-#include "py/mpstate.h"
+#include "py/runtime.h"
#include "py/mphal.h"
-#include "lib/utils/interrupt_char.h"
#include "samd_soc.h"
#include "tusb.h"
@@ -46,15 +45,6 @@ void mp_hal_set_interrupt_char(int c) {
tud_cdc_set_wanted_char(c);
}
-void mp_keyboard_interrupt(void) {
- MP_STATE_VM(mp_pending_exception) = MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception));
- #if MICROPY_ENABLE_SCHEDULER
- if (MP_STATE_VM(sched_state) == MP_SCHED_IDLE) {
- MP_STATE_VM(sched_state) = MP_SCHED_PENDING;
- }
- #endif
-}
-
#endif
void mp_hal_delay_ms(mp_uint_t ms) {