📄 config.h
字号:
/*******************************************************************************************************
* 文件名:config.h
* 功 能:用户配置文件,包含一些类型定义和系统时钟定义。
* 作 者:POWER
* 日 期:2006年5月25号
* 斯凯科技主页:www.armsky.net
* 斯凯科技论坛:www.armsky.net/bbs
********************************************************************************************************/
#ifndef __CONFIG_H
#define __CONFIG_H
//请用户不要修改
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
typedef unsigned char uint8; /* 无符号8位整型变量 */
typedef signed char int8; /* 有符号8位整型变量 */
typedef unsigned short uint16; /* 无符号16位整型变量 */
typedef signed short int16; /* 有符号16位整型变量 */
typedef unsigned int uint32; /* 无符号32位整型变量 */
typedef signed int int32; /* 有符号32位整型变量 */
typedef float fp32; /* 单精度浮点数(32位长度) */
typedef double fp64; /* 双精度浮点数(64位长度) */
/********************************/
/* uC/OS-II的特殊代码 */
/********************************/
#define USER_USING_MODE 0x10 /* 用户模式,ARM代码,只能是0x10,0x30,0x1f,0x3f之一 */
#include "Includes.h" /* 该句用户不能删除 */
/********************************/
/* ARM的特殊代码 */
/********************************/
//这一段无需改动
#include "LPC2294.h"
/********************************/
/* 应用程序配置 */
/********************************/
//以下根据需要改动
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <setjmp.h>
#include <rt_misc.h>
/********************************/
/*Configuration of the example */
/* 开发板默认配置 */
/********************************/
/* 系统设置, Fosc、Fcclk、Fcco、Fpclk必须定义*/
#define Fosc 12000000 // 晶振频率,10~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倍
#include "target.h" // 用户不能删除该句
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -