i2c_stop.c
来自「这是适用I/O口模拟的 I2C 程序」· C语言 代码 · 共 22 行
C
22 行
/*************************** Function Message ****************************
** Funtion Name : I2C_Stop
** Arguments: BYTE bComOrder: the communication order
** Return Value: return the communication status
** Restrictions: none
** created by: ZhangBin
** Last modified: 12/2/04 (MM/DD/YY)
** Description: the main program of the EOS System
***************************************************************************/
void I2C_Stop(void)
{
SDA_DIR_OUT(); // SDA = 0;
SCL_DIR_IN(); // SCL = 1;
I2C_DELAY();
SDA_DIR_IN(); //SDA = 1;
I2C_DELAY();
SDA_DIR = 1;
SCL_DIR = 1;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?