在线时间52 小时
UID3055169
ST金币278
蝴蝶豆0
注册时间2014-8-25
该用户从未签到
高级会员
- 最后登录
- 1970-1-1
|
发表于 2015-1-18 13:59:46
|
显示全部楼层
40./*************************************************************
41.*函数名称:I2CStop
42.*函数功能:I2C停止信号
43.*输入参数:
44.*输出参数:
45.*备 注:时钟线高时,数据线由低到高的跳变,表示I2C停止信号
46.**************************************************************/
47.void I2CStop( void )
48.{
49. GPIO_ResetBits( GPIOB, E2PROM_SDA );
50. DelayMs(1);
51. GPIO_SetBits( GPIOB, E2PROM_SCL );
52. DelayMs(1);
53. GPIO_SetBits( GPIOB, E2PROM_SDA );
54. DelayMs(1);
55.
///这句不要56. GPIO_ResetBits( GPIOB, E2PROM_SCL );
57.}
|
|