Implement I2C watchdog for the left half. Disable the watchdog because it causes a hard fault. Don't update the test LED inside of SlaveCommand_SetTestLed due to testing purposes until the watchdog issue gets resolved.

This commit is contained in:
László Monda
2017-09-21 23:40:49 +02:00
parent e7330f5d61
commit 8924c36cb3
9 changed files with 81 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef __I2C_WATCHDOG_H__
#define __I2C_WATCHDOG_H__
// Includes:
#include "fsl_lptmr.h"
// Macros:
#define I2C_WATCHDOG_LPTMR_HANDLER LPTMR0_IRQHandler
#define LPTMR_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_LpoClk)
#define LPTMR_USEC_COUNT 100000U
// Functions:
extern void InitI2cWatchdog(void);
extern void RunWatchdog(void);
#endif