📄 uimisc.c
字号:
/*
* Start of Zoran Standard Header
* Copyright (c) 2005 Zoran Corporation
*
*
* All rights reserved. Proprietary and confidential.
*
* DESCRIPTION for uimisc.c
* Miscellaneous routines to support the text-only user interface.
*
* NEW HISTORY COMMENT (description must be followed by a blank line)
* <Enter change description here>
* ===== HISTORY of changes in //depot/imgeng/sw/se_gw/ui/fs/textui/uimisc.c
*
* 5/Aug/05 #1 dstrauss Created. Extracted routines and functionality from
* common files.
*
* End of Zoran Standard Header
*/
#include "univ.gh"
#include "arch.h"
#include "pile.h"
#include "dbg.h"
#include "ts.h"
//#include "ledgrp.h"
//#include "kybd.h"
#include "lcd.h"
//#include "sbio.h"
#include "uimisc.h"
#include "uilcd.h"
/*
void UIHdwInit()
{
API_RET bReturnStatus;
// bReturnStatus = SBIO_Init();
ASSERT(bReturnStatus == API_OK);
bReturnStatus = LedGrpInit();
ASSERT(API_OK == bReturnStatus);
bReturnStatus = KybdInit();
ASSERT(API_OK == bReturnStatus);
bReturnStatus = LcdInit();
ASSERT(API_OK == bReturnStatus);
}
*/
void FPprintFatalText(char* pText)
{
LcdClrScreen();
LcdStr(0, 0, pText);
if ( 16 < strlen(pText) ) {
LcdStr(1, 0, &pText[16]);
}
return;
}
void UIInitLCD(Uint8 FocusId, Uint8 *FocusData)
{
while( !LcdIsInitialized() ) {
TASKSLEEP_MILLISECONDS(20);/* Yield for UI driver task to initialize */
}
LcdClrScreen();
// Set focus pattern
LcdDefineChar(FocusId, FocusData);
}
/*
void UIInitKbd()
{
KybdFlush();
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -