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
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 _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_
|
||
|
|