cancel
Showing results for 
Search instead for 
Did you mean: 

Another I2C1 problem in NEW FWLib, see 91x_i2c.c

rgreenthal
Associate II
Posted on March 05, 2008 at 20:48

Another I2C1 problem in NEW FWLib, see 91x_i2c.c

1 REPLY 1
rgreenthal
Associate II
Posted on May 17, 2011 at 11:32

What about I2C1? see your own comments!

Doesn't any one Moderate this?

I see no responses & I also sent this to Tech Support!

/*******************************************************************************

* Function Name : I2C_DeInit

* Description : Deinitializes the I2C peripheral registers to their default

* reset values.

* Input :- I2Cx: I2C peripheral can be:

* - I2C0

* - I2C1

* Output : None

* Return : None

*******************************************************************************/

void I2C_DeInit(I2C_TypeDef* I2Cx)

{

if (I2Cx == I2C0)

{

/* Reset the I2C0 registers values */

SCU_APBPeriphReset(__I2C0, ENABLE);

SCU_APBPeriphReset(__I2C0, DISABLE);

}

}