You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
56 lines
1.4 KiB
//////////////////////////////////////////////////////////////////////////
|
|
/// 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 _siic1_H_
|
|
#define _siic1_H_
|
|
|
|
#include "../clib/type.h"
|
|
#include "../clib/clib.h"
|
|
#include "../ctask/tick.h"
|
|
|
|
|
|
///>>>端口位定义,可修改!!!!!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
|
|
#include "../bsp/bsp_config.h"
|
|
|
|
#include "msp_siicx.h"
|
|
|
|
#define L0_SDA1_OUT() D_P45_OUT()
|
|
#define L0_SDA1_IN() D_P45_IN()
|
|
#define L0_SDA1_ON() D_P45_ON()
|
|
#define L0_SDA1_OFF() D_P45_OFF()
|
|
#define L0_SDA1_AT() D_P45_AT()
|
|
|
|
#define L0_SCL1_OUT() D_P44_OUT()
|
|
#define L0_SCL1_IN() D_P44_IN()
|
|
#define L0_SCL1_ON() D_P44_ON()
|
|
#define L0_SCL1_OFF() D_P44_OFF()
|
|
|
|
#define D_iic1_addr (0x44<<1)
|
|
|
|
#define D_SIIC1_DELAY 100
|
|
|
|
//<<<<端口位定义,可修改!!!!!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
|
|
|
|
extern TS_siic ts_siic1;
|
|
extern void L1_siic1_INIT(void);
|
|
|
|
|
|
|
|
#endif// #ifndef _IIC_H_
|
|
|
|
|