?? sys_init.h
字號:
/************************************************************************************
* Copyright (c) 2004,西安銘朗電子科技有限責(zé)任公司
* All rights reserved.
*
* 文件名稱: SYS_Init.H
* 文件標(biāo)識: none
* 適用器件: C8051F020
*
* 摘 要: 本文件是本系統(tǒng)初始化頭文件,LCD類型的選用也在此配置
*
************************************************************************************/
#ifndef __SYS_init_h__
#define __SYS_init_h__
/***************在此修改選用LCD,將選用LCD后的值改為"1",其他不用的LCD改為"0"*************/
#define LCDA 0
#define LCDB 0
#define LCDC 1
#if LCDA
#include "LCDA_Driver.h"
#elif LCDB
#include "LCDB_Driver.h"
#elif LCDC
#include "LCDC_Driver.h"
#endif
/********************************函數(shù)及變量外部引用聲明*****************************/
#if LCDA|LCDB
/*************************************************************************************
* 漢字字模表
* 漢字庫: 宋體16.dot,橫向取模左高位,數(shù)據(jù)排列:從左到右從上到下
*************************************************************************************/
extern unsigned char code HZ_MING_32X32[];
extern unsigned char code HZ_LANG_32X32[];
extern unsigned char code HZ_KE_32X32[];
extern unsigned char code HZ_JI_32X32[];
#elif LCDC
/************************************************************************************
*非標(biāo)準(zhǔn)字庫漢字(16*16)數(shù)組定義
*************************************************************************************/
/*-- 文字: 銘 --*/
/*-- 楷體_GB231224; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=32x33 --*/
extern unsigned char code WLib_ming_32x32[];
/*-- 文字: 朗 --*/
/*-- 楷體_GB231224; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=32x33 --*/
/*-- 寬度不是8的倍數(shù),現(xiàn)調(diào)整為:寬度x高度=39x33 --*/
extern unsigned char code WLib_lang_32x32[];
/*-- 文字: 科 --*/
/*-- 楷體_GB231224; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=32x33 --*/
/*-- 寬度不是8的倍數(shù),現(xiàn)調(diào)整為:寬度x高度=39x33 --*/
extern unsigned char code WLib_ke_32x32[];
/*-- 文字: 技 --*/
/*-- 楷體_GB231224; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=32x33 --*/
/*-- 寬度不是8的倍數(shù),現(xiàn)調(diào)整為:寬度x高度=39x33 --*/
extern unsigned char code WLib_ji_32x32[];
/*-- 文字: W --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=10x8 --*/
extern unsigned char code WLib_W_10x8[];
/*-- 文字: M --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=9x8 --*/
extern unsigned char code WLib_M_9x8[];
/*-- 文字: L --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=6x8 --*/
extern unsigned char code WLib_L_6x8[];
/*-- 文字: A --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=7x8 --*/
extern unsigned char code WLib_A_7x8[];
/*-- 文字: R --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=7x8 --*/
extern unsigned char code WLib_R_7x8[];
/*-- 文字: C --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=7x8 --*/
extern unsigned char code WLib_C_7x8[];
/*-- 文字: O --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=7x8 --*/
extern unsigned char code WLib_O_7x8[];
/*-- 文字: . --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=4x8 --*/
extern unsigned char code WLib_dot_4x8[];
/*-- 文字: T --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_T_6x8[];
/*-- 文字: e --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_e_5x8[];
/*-- 文字: l --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_l_4x8[];
/*-- 文字: : --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_ddot_3x8[];
/*-- 文字: - --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_line_6x8[];
/*-- 文字: 1 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=4x8 --*/
extern unsigned char code WLib_1_4x8[];
/*-- 文字: 2 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_2_5x8[];
/*-- 文字: 3 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_3_5x8[];
/*-- 文字: 4 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=6x8 --*/
extern unsigned char code WLib_4_6x8[];
/*-- 文字: 5 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_5_5x8[];
/*-- 文字: 6 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=6x8 --*/
extern unsigned char code WLib_6_5x8[];
/*-- 文字: 7 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_7_5x8[];
/*-- 文字: 8 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_8_5x8[];
/*-- 文字: 9 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_9_5x8[];
/*-- 文字: 0 --*/
/*-- Times New Roman8; 此字體下對應(yīng)的點(diǎn)陣為:寬x高=5x8 --*/
extern unsigned char code WLib_0_5x8[];
/*-- 文字: 0,1,2,3,4,5,6,7,8,9 寬x高=8x16 --*/
extern unsigned char code WLib_Num_8x16[160];
#endif
/***********************************************************************************
* 函數(shù)名稱:dis_start0;
*
* 函數(shù)功能描述:顯示開機(jī)界面;
*
* 輸入?yún)?shù):none;
*
* 返回?cái)?shù)據(jù):none;
*
* 注意: none;
************************************************************************************/
void dis_start0 (void);
/***********************************************************************************
* 函數(shù)名稱:SYSCLK_Init;
*
* 函數(shù)功能描述:系統(tǒng)時(shí)鐘初始化,使用外部22.1184MHz晶振作為時(shí)鐘源;
*
* 輸入?yún)?shù):none;
*
* 返回?cái)?shù)據(jù):none;
*
* 注意: none;
************************************************************************************/
void SYSCLK_Init (void);
/***********************************************************************************
* 函數(shù)名稱:PORT_Init;
*
* 函數(shù)功能描述:配置端口初始化,配置交叉開關(guān)和端口;
*
* 輸入?yún)?shù):none;
*
* 返回?cái)?shù)據(jù):none;
*
* 注意: none;
************************************************************************************/
void PORT_Init (void);
/************************************************************************************/
#endif
/*************************************************************************************
* 文件結(jié)束
*************************************************************************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -