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.
53 lines
1.3 KiB
53 lines
1.3 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 _SIIC3_H_
|
|
#define _SIIC3_H_
|
|
|
|
#include "../clib/type.h"
|
|
#include "../clib/clib.h"
|
|
#include "../ctask/tick.h"
|
|
|
|
|
|
///>>>端口位定义,可修改!!!!!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
|
|
#include "../bsp/bsp_config.h"
|
|
|
|
#include "msp_siicx.h"
|
|
|
|
#define L0_SDA3_OUT() D_P85_OUT()
|
|
#define L0_SDA3_IN() D_P85_IN()
|
|
#define L0_SDA3_ON() D_P85_ON()
|
|
#define L0_SDA3_OFF() D_P85_OFF()
|
|
#define L0_SDA3_AT() D_P85_AT()
|
|
|
|
#define L0_SCL3_OUT() D_P84_OUT()
|
|
#define L0_SCL3_IN() D_P84_IN()
|
|
#define L0_SCL3_ON() D_P84_ON()
|
|
#define L0_SCL3_OFF() D_P84_OFF()
|
|
|
|
#define D_SIIC3_DELAY 100
|
|
|
|
//<<<<端口位定义,可修改!!!!!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
|
|
extern TS_siic ts_siic3;
|
|
extern void L1_siic3_INIT(void);
|
|
|
|
|
|
|
|
#endif// #ifndef _IIC_H_
|
|
|
|
|