📄 bspddlcdc.h
字号:
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Copyright (C) 2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
//------------------------------------------------------------------------------
#ifndef _BSP_DRIVERS_DISPLAY_DDLCDC_H
#define _BSP_DRIVERS_DISPLAY_DDLCDC_H
//------------------------------------------------------------------------------
// MACRO DEFINITIONS
//------------------------------------------------------------------------------
// panel
typedef enum PanelType
{
DISPLAY_SHARP_LQ035Q7DB02, // QVGA display
DISPLAY_NEC_NL6448BC20_08E, // VGA display
numPanels, // This enum should be ended by numPanels
}PanelType_c;
#define PANEL_TYPE_DEFAULT DISPLAY_SHARP_LQ035Q7DB02
#define MAX_NUM_MODES 4 // The supported mode types, such as LCD, TV, etc, now only one mode one time
DWORD m_dwDisplayMode; // LCD Panel or TV, 0 for LCD Panel, 1 for TV
DWORD m_dwPanelType; // LCD Panel identifier, 0 for SHARP_LQ035Q7DB02
DWORD m_dwTVType; // TV mode identifier, 0 for PAL, 1 for NTSC
GPEMode *m_pSupportedModes; // Array of supported modes
#define RGB565_RED 0xf800
#define RGB565_GREEN 0x07e0
#define RGB565_BLUE 0x001f
//------------------------------------------------------------------------------
// DDLCD registry entries
//------------------------------------------------------------------------------
#define DDLCDC_REG_PATH TEXT("Drivers\\Display\\DDLCDC")
#define DISPLAY_MODE TEXT("DisplayMode")
#define PANEL_TYPE TEXT("PanelType")
#define TV_TYPE TEXT("TVType")
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
BOOL GetDisplayModeFromRegistry(void);
SCODE BSPSetMode(int modeId, HPALETTE *pPalette);
ULONG BSPGetModeNum(void);
GPEMode BSPGetMode(void);
#endif /* _BSP_DRIVERS_DISPLAY_DDLCDC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -