circuitpython/ports/atmel-samd/common-hal
Scott Shawcroft fece0fb432
Fix crash when UART construct fails
After the script stops with the exception thrown the final gc_sweep
will call any finalizers and they usually call deinit. deinit on
invalid objects can wreak havoc by changing random memory or
(hopefully) crashing. This fixes ensures the object is deinited
until initialization succeeds and the object is valid.

Do the same fix for I2C and SPI too.

Fixes #4700 and fixes #5005
2021-07-20 17:15:19 -07:00
..
_pew run code formatting script 2021-03-15 19:27:36 +05:30
analogio added pin object to analogout 2021-07-12 20:33:42 -04:00
audiobusio uncrustify with newer version of uncrustify 2021-04-30 10:40:12 -04:00
audioio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
board Add license to some obvious files. 2020-07-06 19:16:25 +01:00
busio Fix crash when UART construct fails 2021-07-20 17:15:19 -07:00
canio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
countio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
digitalio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
displayio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
frequencyio FrequencyIn: do not raise in interrupt handler 2020-12-22 18:54:42 -05:00
i2cperipheral codeformat: Fix handling of `**` 2021-04-30 15:30:13 -05:00
imagecapture ParallelImageCapture: Switch to taking a list of pins 2021-06-10 11:15:18 -05:00
microcontroller Remove MICROPY_PORT_* macros used for never reset 2021-07-15 16:20:04 -07:00
neopixel_write Fix SAMD 2021-05-14 16:14:24 -07:00
nvm codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
os codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
ps2io codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
pulseio codeformat: Fix handling of `**` 2021-04-30 15:30:13 -05:00
pwmio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
rgbmatrix codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
rotaryio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
rtc codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
sdioio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
supervisor codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
touchio codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00