micropython/ports/nrf/modules/machine
Christian Walther 5e926b2222 nrf/modules/machine: Catch exceptions from pin interrupts.
Exceptions in pin interrupt handlers would end up crashing MicroPython with
a "FATAL: uncaught exception".

In addition, MicroPython would get stuck trying to output this error
message, or generally any print output from inside a pin interrupt handler,
through the UART after the first character, so that only "F" was visible.
The reason was a matching interrupt priority between the running pin
interrupt and the UARTE interrupt signaling completion of the output
operation.  Fix that by increasing the UARTE interrupt priority.

Code taken from the stm32 port and adapted.

Signed-off-by: Christian Walther <cwalther@gmx.ch>
2024-03-26 15:21:01 +11:00
..
adc.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
adc.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
i2c.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
i2c.h extmod/modmachine: Consolidate mem, i2c and spi headers to modmachine.h. 2023-10-26 17:40:22 +11:00
modmachine.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
modmachine.h extmod/modmachine: Provide common bindings for 6 bare-metal functions. 2023-11-30 16:11:11 +11:00
pin.c nrf/modules/machine: Catch exceptions from pin interrupts. 2024-03-26 15:21:01 +11:00
pin.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
pwm.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
pwm.h extmod/machine_pwm: Remove header file and move decls to .c file. 2023-10-20 16:24:46 +11:00
rtcounter.c nrf: Fix non-running LFCLK. 2024-03-26 13:03:57 +11:00
rtcounter.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
soft_pwm.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
spi.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
spi.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
temp.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
temp.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
timer.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
timer.h extmod/modmachine: Clean up decls of machine types to use common ones. 2023-10-26 16:20:53 +11:00
uart.c nrf/modules/machine: Catch exceptions from pin interrupts. 2024-03-26 15:21:01 +11:00
uart.h extmod/machine_uart: Factor ports' UART Python bindings to common code. 2023-10-26 10:46:42 +11:00