⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hw_tpg121.h

📁 瑞星微公司RK27XX系列芯片的SDK开发包
💻 H
字号:
/******************************************************************/
/*   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -