Make I2C_Watchdog volatile.

This commit is contained in:
László Monda
2017-03-16 14:01:47 +01:00
parent f2c20af612
commit ed719ab139
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ static i2c_isr_t s_i2cMasterIsr;
static i2c_isr_t s_i2cSlaveIsr;
/* SGF @brief Extern counter to ensure that I2C is always alive */
uint32_t I2C_Watchdog;
volatile uint32_t I2C_Watchdog;
/*******************************************************************************
* Codes

View File

@@ -32,7 +32,7 @@
#include "fsl_common.h"
extern uint32_t I2C_Watchdog;
extern volatile uint32_t I2C_Watchdog;
/*!
* @addtogroup i2c_driver