micropython/ports
robert-hh ce38784fa8 mimxrt/machine_uart: Fix and complete UART.deinit and uart_deinit_all.
The code did not check at deinit whether a UART was initialized.  That did
not matter for all MCU's except MIMXRT1176, which crashes at the second
soft reset in a row.

But since it is a general problem to use UART methods of a UART which has
been deinitialized, checks were added to all applicable methods for a clear
response instead of e.g. a crash.

Deinitialize UART using software reset.  It resets the UART but keeps it
accessible for software, avoiding an exception when UART registers are
accessed after a DeInit.

Signed-off-by: robert-hh <robert@hammelrath.com>
2023-09-01 00:27:13 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 cc3200/Makefile: Build firmware.zip. 2023-08-24 15:44:20 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 py/mpconfig: Enable SSL finalizers if finalizers are enabled. 2023-08-30 12:38:13 +10:00
esp8266 esp8266/boards/ESP8266_GENERIC: Add image filename. 2023-08-24 17:15:32 +10:00
mimxrt mimxrt/machine_uart: Fix and complete UART.deinit and uart_deinit_all. 2023-09-01 00:27:13 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf nrf/boards: Rename all nRF boards to use uppercase. 2023-08-23 13:54:37 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
renesas-ra ports/*/boards/*/board.json: Remove "id" field. 2023-08-23 13:54:37 +10:00
rp2 rp2: Rename PICO, PICO_W to RPI_PICO, RPI_PICO_W. 2023-08-23 15:49:37 +10:00
samd all: Remove query-variants make target. 2023-08-15 17:37:44 +10:00
stm32 drivers/cyw43: Make the CYW43 Bluetooth HCI driver more portable. 2023-09-01 00:02:00 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix py/profile: Remove the requirement to disable MICROPY_COMP_CONST. 2023-08-30 10:58:04 +10:00
webassembly webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag. 2023-07-13 13:24:35 +10:00
windows extmod/moddeflate: Add deflate module providing the DeflateIO class. 2023-07-21 19:32:40 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00