////////////////////////////////////////////////////////////////////////// /// COPYRIGHT NOTICE /// Copyright (c) 2018, 传控科技 /// All rights reserved. /// /// @file iic_sim /// @brief iic 模拟io 版本, 和cpu无关,唯一需要修改的就是头函数中的管脚定义 /// @info 除了io配置 ,其他地方如无必要请勿修改 ///(本文件实现的功能的详述) /// /// @version 1.1 CCsens technology /// @author CC /// @date 20180102 // ////////////////////////////////////////////////////////////////////////// #ifndef _SIIC2_H_ #define _SIIC2_H_ #include "../clib/type.h" #include "../clib/clib.h" #include "../ctask/tick.h" ///>>>端口位定义,可修改!!!!!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #include "../bsp/bsp_config.h" #include "msp_siicx.h" #define L0_SDA2_OUT() D_P47_OUT() #define L0_SDA2_IN() D_P47_IN() #define L0_SDA2_ON() D_P47_ON() #define L0_SDA2_OFF() D_P47_OFF() #define L0_SDA2_AT() D_P47_AT() #define L0_SCL2_OUT() D_P46_OUT() #define L0_SCL2_IN() D_P46_IN() #define L0_SCL2_ON() D_P46_ON() #define L0_SCL2_OFF() D_P46_OFF() #define D_iic2_addr 0x44 #define D_SIIC2_DELAY 100 //<<<<端口位定义,可修改!!!!!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< extern TS_siic ts_siic2; extern void L1_siic2_INIT(void); #endif// #ifndef _IIC_H_