?? config.h
字號:
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
** graduate school
** http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date: 2004-09-17
** Last Version: 1.0
** Descriptions: User Configurable File
**
**------------------------------------------------------------------------------------------------------
** Created By: Chenmingji
** Created date: 2004-09-17
** Version: 1.0
** Descriptions: First version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#ifndef __CONFIG_H
#define __CONFIG_H
//This segment should not be modified
#ifndef TRUE
#define TRUE 1
#endif
#ifndef NULL
#define NULL 0L
#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 INT8U; /* 無符號8位整型變量 */
typedef signed char INT8S; /* 有符號8位整型變量 */
typedef unsigned short INT16U; /* 無符號16位整型變量 */
typedef signed short INT16S; /* 有符號16位整型變量 */
typedef unsigned int INT32U; /* 無符號32位整型變量 */
typedef signed int INT32S; /* 有符號32位整型變量 */
typedef float FP32; /* 單精度浮點數(32位長度) */
typedef double FP64; /* 雙精度浮點數(64位長度) */
#define BOOL INT8U
/********************************/
/* uC/OS-II的特殊代碼 */
/********************************/
//這一段不能改動
#define USER_USING_MODE 0x30 /* 用戶模式,32位ARM代碼 */
#include "Includes.h"
/********************************/
/* ARM的特殊代碼 */
/********************************/
//這一段無需改動
#include "stdlib.h"
#include "LPC2294.h"
#include "target.h"
#include "CFG_NET.h"
#include "rcf_socket.h"
#include "system.h"
#include "arithmetic.h"
#include "HostStack.h"
#include "USBDriver.h"
#include "OSFile.h"
#include "NandFlashInfo.h"
#include "Connect_Test.h"
// 系統設置, Fosc、Fcclk、Fcco、Fpclk必須定義
//這一段不能改動
#define Fosc 11059200 //CPU晶振頻率,10MHz~25MHz,應當與實際硬件一致
#define Fcclk (Fosc * 4) //系統頻率,必須為Fosc的整數倍(1~32),且<=60MHZ
#define Fcco (Fcclk * 4) //CCO頻率,必須為Fcclk的2、4、8、16倍,范圍為156MHz~320MHz
#define Fpclk (Fcclk / 4) * 1 //VPB時鐘頻率,只能為(Fcclk / 4)的1、2、4倍
#endif
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -