Skip to content
Discussion options

You must be logged in to vote

The QEMU port will spin in ports/qemu/mphalport.c regardless of the architecture, in mp_hal_stdin_rx_chr to be precise.

If you want to lower CPU time, you may achieve that by rewriting the console's UART interaction to be interrupt driven - and I guess you'll then need to implement your own version of MICROPY_INTERNAL_WFE for both Arm and RV32 targets or the interpreter won't process timers/delayed events until there's an incoming keypress.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yf13
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
Labels
None yet
3 participants