changed I2C watchdog timer implementation, as LPTMR was already used by key scanner

This commit is contained in:
Erich Styger
2017-12-25 17:15:41 +01:00
parent 5581dd26b5
commit 7eb83173ed
4 changed files with 33 additions and 27 deletions

View File

@@ -10,6 +10,7 @@
#include "slave_protocol_handler.h"
#include "i2c_watchdog.h"
#include "debug_over_spi.h"
#include "main.h"
i2c_slave_config_t slaveConfig;
i2c_slave_handle_t slaveHandle;
@@ -87,5 +88,7 @@ void InitPeripherals(void)
LedPwm_Init();
DebugOverSpi_Init();
InitI2c();
#if KEY_USE_I2C_WATCHDOG_TIMER
InitI2cWatchdog();
#endif
}