Make I2C_Watchdog volatile.
This commit is contained in:
@@ -147,7 +147,7 @@ static i2c_isr_t s_i2cMasterIsr;
|
|||||||
static i2c_isr_t s_i2cSlaveIsr;
|
static i2c_isr_t s_i2cSlaveIsr;
|
||||||
|
|
||||||
/* SGF @brief Extern counter to ensure that I2C is always alive */
|
/* SGF @brief Extern counter to ensure that I2C is always alive */
|
||||||
uint32_t I2C_Watchdog;
|
volatile uint32_t I2C_Watchdog;
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Codes
|
* Codes
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include "fsl_common.h"
|
#include "fsl_common.h"
|
||||||
|
|
||||||
extern uint32_t I2C_Watchdog;
|
extern volatile uint32_t I2C_Watchdog;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @addtogroup i2c_driver
|
* @addtogroup i2c_driver
|
||||||
|
|||||||
Reference in New Issue
Block a user