hw_tpg121.h

来自「RK27驱动」· C头文件 代码 · 共 50 行

H
50
字号
/******************************************************************/
/*   Copyright (C) 2007 ROCK-CHIPS FUZHOU . All Rights Reserved.  */
/*******************************************************************
File	:  hwapi_Tpg121.h
Desc	:  Tpg121型号的LCD驱动声明
		  
Author	:  nzy
Date	: 
Notes	: 

$Log	: 
*********************************************************************/
#ifndef _HW_TPG121_H_
#define _HW_TPG121_H_

#include "hw_include.h"

#if(LCDPANEL == RGBIF_TPG121)

#define SDA_PIN                      GPIOPortB_Pin7
#define SCL_PIN                      GPIOPortB_Pin6
#define SCEN_PIN                     GPIOPortE_Pin0

#define iic_set_sda_out              GPIO_SetPinDirection(SDA_PIN, GPIO_OUT)
#define iic_set_sda_in               GPIO_SetPinDirection(SDA_PIN, GPIO_IN)


#define iic_sda_high                 GPIO_SetPinLevel(SDA_PIN,GPIO_HIGH)
#define iic_sda_low                  GPIO_SetPinLevel(SDA_PIN,GPIO_LOW)
#define iic_sda_is_high              GPIO_GetPinLevel(SDA_PIN)

#define iic_set_scl_out              GPIO_SetPinDirection(SCL_PIN, GPIO_OUT)
#define iic_scl_high                 GPIO_SetPinLevel(SCL_PIN,GPIO_HIGH)
#define iic_scl_low                  GPIO_SetPinLevel(SCL_PIN,GPIO_LOW)

#define iic_set_scen_out             GPIO_SetPinDirection(SCEN_PIN, GPIO_OUT)
#define iic_scen_high                GPIO_SetPinLevel(SCEN_PIN,GPIO_HIGH)
#define iic_scen_low                 GPIO_SetPinLevel(SCEN_PIN,GPIO_LOW)

#define Delay2us                     USDELAY(2)

#endif

#endif/* _HW_TPG121_H_ */

/*********************************************************************
 END OF FILE
*********************************************************************/
		

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?