void LCD_GPIO_Init(void)
{
///重点初始化
PORT_DebugPortSetting(TDI,Disable); //关闭JTDI 调试管脚
stc_port_init_t stcPortInit;
/*配置结构初始化*/
MEM_ZERO_STRUCT(stcPortInit);
stcPortInit.enPinMode = Pin_Mode_Out;//输出模式
stcPortInit.enExInt = Enable;//Enable//Disable
stcPortInit.enPullUp = Enable;//enPinDrv
/* Port/Pin 初始化 */
PORT_Init(LCD_SI_PORT,LCD_SI_PIN, &stcPortInit);
PORT_Init(LCD_SCL_PORT,LCD_SCL_PIN, &stcPortInit);
PORT_Init(LCD_A0_PORT,LCD_A0_PIN, &stcPortInit);
PORT_Init(LCD_RES_PORT,LCD_RES_PIN, &stcPortInit);
PORT_Init(LCD_CS_PORT,LCD_CS_PIN, &stcPortInit);
LCD_SI_L();
LCD_SCL_L();
LCD_A0_L();
LCD_RES_L();
LCD_CS_L();
}
|