⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h.svn-base

📁 电能量信息采集程序,很适合于电力行业做点能量采集的人员参考应用
💻 SVN-BASE
字号:
/****************************************Copyright (c)**************************************************
**                               江苏高科电力自动化设备有限公司
**                                        开发部 
**------------------------------------------------------------------------------------------------------
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date:  2004-09-17
** Last Version: 1.0
** Descriptions: User Configurable File
********************************************************************************************************/
#ifndef __CONFIG_H 
#define __CONFIG_H
//这一段无需改动
//This segment should not be modified
#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

typedef unsigned char  uint8;                   /* defined for unsigned 8-bits integer variable 	无符号8位整型变量  */
typedef signed   char  int8;                    /* defined for signed 8-bits integer variable		有符号8位整型变量  */
typedef unsigned short uint16;                  /* defined for unsigned 16-bits integer variable 	无符号16位整型变量 */
typedef signed   short int16;                   /* defined for signed 16-bits integer variable 		有符号16位整型变量 */
typedef unsigned int   uint32;                  /* defined for unsigned 32-bits integer variable 	无符号32位整型变量 */
typedef signed   int   int32;                   /* defined for signed 32-bits integer variable 		有符号32位整型变量 */
typedef float          fp32;                    /* single precision floating point variable (32bits) 单精度浮点数(32位长度) */
typedef double         fp64;                    /* double precision floating point variable (64bits) 双精度浮点数(64位长度) */

typedef unsigned char  Byte;
typedef unsigned short Word;
typedef unsigned int   DWord;             

/********************************/
/*      uC/OS-II specital code  */
/*      uC/OS-II的特殊代码      */
/********************************/

#define     USER_USING_MODE    0x10                    /*  User mode ,ARM 32BITS CODE 用户模式,ARM代码                  */
// 
                                                     /*  Chosen one from 0x10,0x30,0x1f,0x3f.只能是0x10,0x30,0x1f,0x3f之一       */
	#ifdef __cplusplus
	extern "C" {
	#endif
#include    "os_cpu.h"
#include    "os_cfg.h"
#include    "ucos_ii.h"
	#ifdef __cplusplus
	}
	#endif


   /* 由于不同情况中断OSIntExit()对堆栈的使用情况不同,必须加上这个宏定义    */
   /* for any types of interrupt , OSIntExit() using the stacks is different , so ,must add this define*/
#define OSIntCtxSw()    return

/********************************/
/*      ARM的特殊代码           */
/*      ARM specital code       */
/********************************/
//这一段无需改动
//This segment should not be modify

#include    "LPC2294.h"


/********************************/
/*     应用程序配置             */
/*Application Program Configurations*/
/********************************/
//以下根据需要改动
//This segment could be modified as needed.
#include    <stdio.h>
#include    <ctype.h>
#include    <stdlib.h>
#include    <setjmp.h>
#include    <rt_misc.h>
#include    <math.h>
#include    <string.h>

/********************************/
/*     ZLG/FS需包含的头文件     */
/********************************/
#define     MAX_OPEN_FILES      1
#define     MAX_DISK_CACHES     5
#include    "fat.h"
#include    "OSFile.h"

#define		FS_CF		

extern char *strupr(char *Str);
#ifdef	FS_CF 
extern uint16 CFCammand(uint8 Cammand, void *Parameter);
/********************************/
/* CF存储卡需配置及包含的头文件 */
/********************************/
#define 	UCOSII
#include    "SysATA.H"
#include  	"IDE.H"
#endif

#ifdef FS_SD
extern uint16 SDCammand(uint8 Cammand, void *Parameter);
/********************************/
/* SD存储卡需配置及包含的头文件 */
/********************************/
#include "sdconfig.h"
#include "sddriver.h"
#endif

/*Application Program Configurations*/
/*     应用程序配置             */
/********************************/
//This segment could be modified as needed.
//以下根据需要改动
#include    "GUI_CONFIG.H"
#include    "LCDDRIVE.h"
#include    "GUI_BASIC.H"
#include    "GUI_STOCKC.H"
#include	"Spline.h"
#include    "FONT_MACRO.H"
#include    "FONT5_7.H"
#include    "FONT8_8.H"
#include    "FONT24_32.H"
#include    "LOADBIT.H"
#include    "WINDOWS.H"
#include    "MENU.H"

#define     DISP_WIDTH 240
#define     DISP_HEIGHT 320
#define     DISP_COL 34
#define     DISP_ROW 45
#define     DISP_CHARWIDTH 7
#define     DISP_CHARHEIGHT 14
 

/********************************/
/*     本例子的配置             */
/*Configuration of the example */
/********************************/
/* System configuration .Fosc、Fcclk、Fcco、Fpclk must be defined */
/* 系统设置, Fosc、Fcclk、Fcco、Fpclk必须定义*/
#define Fosc            11059200                    //Crystal frequence,10MHz~25MHz,should be the same as actual status. 
						    //应当与实际一至晶振频率,10MHz~25MHz,应当与实际一至
#define Fcclk           (Fosc  * 4)                  //System frequence,should be (1~32)multiples of Fosc,and should be equal or less  than 60MHz. 
						    //系统频率,必须为Fosc的整数倍(1~32),且<=60MHZ
#define Fcco            (Fcclk * 4)                 //CCO frequence,should be 2、4、8、16 multiples of Fcclk, ranged from 156MHz to 320MHz. 
						    //CCO频率,必须为Fcclk的2、4、8、16倍,范围为156MHz~320MHz
#define Fpclk           (Fcclk / 4) * 1             //VPB clock frequence , must be 1、2、4 multiples of (Fcclk / 4).
						    //VPB时钟频率,只能为(Fcclk / 4)的1、2、4倍

#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -