1234567891011121314151617181920212223242526 |
- #ifndef __gpio_i2c_h__
- #define __gpio_i2c_h__
- /***
- * 引入HALL层 gpio初始化 文件
- ***/
- #include "hal_io.h"
- /*
- * 定义GPIO引脚
- */
- typedef struct
- {
- port_t sda_port;
- port_t scl_port;
- }i2c_port_t;
- extern void I2cInit(i2c_port_t i2cPort);
- extern void I2cStart();
- extern void I2cStop();
- extern void I2cWaitAck();
- extern void I2cSendAck();
- extern void I2cSendByte();
- extern void I2cReadByte();
- #endif
|