config.h

来自「LPC21XX系列开发板测试原代码,包括IIC RTC BEEZ UART等基础」· C头文件 代码 · 共 37 行

H
37
字号
/*******************************************************************************************************
**                                     西安傅立叶电子科技
**                                Xian FFT Electornic Technology
**                                   http://www.fftchina.com
********************************************************************************************************/

#ifndef __CONFIG_H 
#define __CONFIG_H

#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

typedef unsigned char  uint8;
typedef signed   char  int8;
typedef unsigned short uint16;
typedef signed   short int16;
typedef unsigned int   uint32;
typedef signed   int   int32;
typedef float          fp32;
typedef double         fp64;

#include    "LPC2294.h"

/* System configuration .Fosc、Fcclk、Fcco、Fpclk must be defined */

#define Fosc            11059200                    // Crystal frequence,10MHz~25MHz,should be the same as actual status. 
#define Fcclk           (Fosc * 4)                  // System frequence,should be (1~32)multiples of Fosc,and should be equal or less  than 60MHz. 
#define Fcco            (Fcclk * 4)                 // CCO frequence,should be 2、4、8、16 multiples of Fcclk, ranged from 156MHz to 320MHz. 
#define Fpclk           (Fcclk / 4) * 1             // VPB clock frequence , must be 1、2、4 multiples of (Fcclk / 4).

#include    "target.h"															// This line may not be deleted
#endif

⌨️ 快捷键说明

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