samd/mphalport: Fix USB endpoint handling ignoring Ctrl-C.

Porting PR #8040 by @hoihu to SAMD, following the commit
5873390226.

One small addition: before executing keyboard interrupt, the input buffer
is cleared.
This commit is contained in:
robert-hh
2022-06-28 16:59:01 +02:00
committed by Damien George
parent b001730462
commit e9a76310ec
3 changed files with 59 additions and 22 deletions

View File

@@ -131,6 +131,7 @@ SRC_C += \
shared/libc/string0.c \
shared/readline/readline.c \
shared/runtime/gchelper_native.c \
shared/runtime/interrupt_char.c \
shared/runtime/pyexec.c \
shared/runtime/softtimer.c \
shared/runtime/stdout_helpers.c \