qmk_firmware/platforms/chibios/drivers
Stefan Kerkmann 083b42068a
Chibios: Stop I2C peripheral on transaction error (#17798)
From the ChibiOS HAL I2C driver pages:

After a timeout the driver must be stopped and restarted because the bus is in
an uncertain state.

This commit does that stopping explicitly on any error that occurred, not only
timeouts. As all the i2c functions restart the peripheral if necessary it is
safe to do so.

Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>

Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
2022-07-26 21:40:14 +02:00
..
eeprom
flash
ps2
vendor/RP/RP2040 [Core] Use polled waiting on ChibiOS platforms that support it (#17607) 2022-07-11 15:17:05 +02:00
wear_leveling Post-bootloader EFL/SPI fixes. (#17661) 2022-07-14 00:41:08 +10:00
analog.c
analog.h
audio_dac.h
audio_dac_additive.c
audio_dac_basic.c
audio_pwm.h
audio_pwm_hardware.c
audio_pwm_software.c
i2c_master.c Chibios: Stop I2C peripheral on transaction error (#17798) 2022-07-26 21:40:14 +02:00
i2c_master.h
serial.c [Core] Use polled waiting on ChibiOS platforms that support it (#17607) 2022-07-11 15:17:05 +02:00
serial_protocol.c [BUG] Fix deadlocks on disconnected secondary half (#17423) 2022-06-21 08:24:53 +10:00
serial_protocol.h
serial_usart.c [Core] Add Raspberry Pi RP2040 support (#14877) 2022-06-30 13:19:27 +02:00
serial_usart.h
spi_master.c Post-bootloader EFL/SPI fixes. (#17661) 2022-07-14 00:41:08 +10:00
spi_master.h
uart.c
uart.h
usbpd_stm32g4.c
ws2812.c
ws2812_pwm.c
ws2812_spi.c