Fix the I2C dead-lock of the Master

When some slave is unplugged suddenly this can lead to unresponsiveness of the driver. restart_I2C will continuously check this and assure that the driver will be reconfigured in case of a dead-lock.
This commit is contained in:
Santiago
2017-02-18 13:11:45 +01:00
committed by GitHub
parent 880981ac14
commit 226bc31385
3 changed files with 29 additions and 1 deletions

View File

@@ -6,5 +6,6 @@
// Functions:
void InitPeripherials();
void restartI2C();
uint32_t I2C_Watchdog = 0;
#endif