hisilicon的I2C的使用
实例:使用IO模拟I2C 控制tmp102
AA12 | STB_GPIO18_5/RF_SCL | 掉电 | RF_SCL | O | \ | EXT_SCL | TUNER和外置DEMOD的I2C控制 |
---|---|---|---|---|---|---|---|
AB12 | STB_GPIO18_6/RF_SDA | 掉电 | RF_SDA | B | \ | EXT_SDA |
1、设置IO
device/hisilicon/bigfish/sdk/source/custom/352f_board_2layer/hi_pin_mux_cfg.h
{ 0xF8008014, 0x00000000 }, // reg_name:stb_ctrl5; pad_name:RF_SCL; reg_value: 0x0--STB_GPIO18_5,0x1--RF_SCL,
// 0x2--NA,0x3--NA,0x4--NA,0x5--NA,0x6--NA,0x7--NA
{ 0xF8008018, 0x00000000 }, // reg_name:stb_ctrl6; pad_name:RF_SDA; reg_value: 0x0--STB_GPIO18