📄 lcdpwr.c
字号:
//====================================================================
// File Name : LCDPWR.c
// Function : S3C2410 Test LCD Power On/Off
// Program : Shin, On Pil (SOP)
// Date : Arpil 11, 2002
// Version : 0.0
// History
// 0.0 : Programming start (April 10,2002) -> SOP
//====================================================================
#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "option.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "lcdlib.h"
#include "lcdpwr.h"
void Test_Lcd_PowerOnOFF(void)
{
unsigned int save_lcdcon1, save_lcdcon5;
save_lcdcon1 = rLCDCON1;
save_lcdcon5 = rLCDCON5;
Lcd_PowerEnable(0,1); //INVPWREN=0, PWREN=1
Uart_Printf("[ LCD On/Off Test ]\n\n");
Uart_Printf("Now LCD power is off .......\n\n");
Uart_Printf("Press any key to LCD On........\n");
while(!Uart_GetKey());
rLCDCON1 = rLCDCON1 & 0x3fffe | (1<<0);
Uart_Printf("Press any key to LCD Off.......\n");
while(!Uart_GetKey());
rLCDCON1 = rLCDCON1 & 0x3fffe | (0<<0);
Uart_Printf("Press any key to LCD On........\n");
while(!Uart_GetKey());
rLCDCON1 = rLCDCON1 & 0x3fffe | (1<<0);
Uart_Printf("Press any key to LCD Off.......\n");
while(!Uart_GetKey());
rLCDCON1 = rLCDCON1 & 0x3fffe | (0<<0);
Uart_Printf("Press any key to exit....\n");
while(!Uart_GetKey());
rLCDCON1 = save_lcdcon1;
rLCDCON5 = save_lcdcon5;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -