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.
57 lines
1.4 KiB
57 lines
1.4 KiB
1 year ago
|
//////////////////////////////////////////////////////////////////////////
|
||
|
/// 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_
|
||
|
|