diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-01 16:04:34 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 16:04:34 +0000 |
commit | 01156d510c728408be4fd3100bcee18e8985ac00 (patch) | |
tree | 00474b76a63214870d88c82249db9d17c64f2f71 /stm/stm32fxxx_it.c | |
parent | 532f2c30f66c9ff1e4f2aded29b98ba0db5ec341 (diff) | |
download | micropython-01156d510c728408be4fd3100bcee18e8985ac00.tar.gz micropython-01156d510c728408be4fd3100bcee18e8985ac00.zip |
stm: Add support for ctrl-C to interrupt running Python.
Using PendSV interrupt at lowest priority, code can now raise an
exception during an interrupt by calling pendsv_nlr_jump. The exception
will be raised when all interrupts are finished. This is used to trap
ctrl-C from the USB VCP to break out of running Python code.
Diffstat (limited to 'stm/stm32fxxx_it.c')
-rw-r--r-- | stm/stm32fxxx_it.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stm/stm32fxxx_it.c b/stm/stm32fxxx_it.c index 7b5030bc6e..97cdee6a84 100644 --- a/stm/stm32fxxx_it.c +++ b/stm/stm32fxxx_it.c @@ -151,6 +151,8 @@ void DebugMon_Handler(void) */ void PendSV_Handler(void) { + extern void pendsv_isr_handler(void); + pendsv_isr_handler(); } /** |