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

📄 config.h

📁 philips arm7 lpc2103的常用功能的库函数第二部分
💻 H
字号:
/***********************************************Copyright (c)*********************************************
**                                Guangzou ZLG-MCU Development Co.,LTD.
**                                     
**                                       http://www.zlgmcu.com
**
**--------------File Info---------------------------------------------------------------------------------
** File name:			    config.h
** Last modified Date:      2007-09-20
** Last Version:		    1.0
** Descriptions:		    配置系统参数和集中配置头文件引用
**
**--------------------------------------------------------------------------------------------------------
** Created by:			    lixiaocheng
** Created date:		    2007-09-20
** Version:				    1.0
** Descriptions:		    
**
**--------------------------------------------------------------------------------------------------------
** Modified by:			    
** Modified Date:		    
** Version:				    
** Descriptions:		    
**
*********************************************************************************************************/
#ifndef __CONFIG_H 
#define __CONFIG_H

/*********************************************************************************************************
  定义一些常用的宏参数值,用户无需修改
*********************************************************************************************************/
#ifndef TRUE
#define TRUE    1
#endif

#ifndef FALSE
#define FALSE   0
#endif

#ifndef NONE
#define NONE    0
#endif

#ifndef NULL
#define NULL    0
#endif

/*********************************************************************************************************
  定义一个选择字符串参数传入格式选择宏
  当宏配置为0时,采用空格分割参数,例如:"Arg0=0 Arg1=1 Arg2=2 Arg3=3"
  当宏配为1实,采用逗号分割参数,例如:"Arg0=0, Arg1=1, Arg2=2, Arg3=3"
*********************************************************************************************************/
#define ARG_CMD_FORMAT  0     

/*********************************************************************************************************
  lpc22xx系统时钟配置
*********************************************************************************************************/
#define Fosc            11059200                                        /* 外部时钟输入频率,10MHz~25MHz */
                                                                        /* 配置值应当与实际一至         */
                                                                        
#define Fcclk           (Fosc * 4)                                      /* 系统频率,<=60MHZ            */
                                                                        /* 必须为Fosc的整数倍(1~32)     */
                                                                        
#define Fcco            (Fcclk * 4)                                     /* CCO频率,范围为156MHz~320MHz */
                                                                        /* 必须为Fcclk的2、4、8、16倍   */ 
						   
#define Fpclk           (Fcclk / 4) * 1                                 /* VPB时钟频率                  */
						                                                /* 只能为(Fcclk / 4)的1、2、4倍 */
						    
/*********************************************************************************************************
  定义一些系统使用的变量类型
*********************************************************************************************************/
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位长度)     */

/*********************************************************************************************************
  lpc22xx基本库函数头文件引用,用户不能剪裁
*********************************************************************************************************/
#include    "Lpc213x.h"                                                 /* 寄存器定义                   */
#include    "Target.h"                                                  /* 目标板                       */
#include	<stdio.h>                                                   /* C语言库函数                  */
#include    <string.h>                                                  
#include	"Deal_err.h"                                                /* 错误返回                     */
#include	"PinConfig.h"                                               /* 管脚管理                     */
#include	"IrqManage.h"                                               /* 中断管理                     */
#include	"Fiq.h"                                                     
#include    "Queue.h"                                                   /* 队列管理                     */
#include    "DeviceConfig.h"                                            /* 输入参数管理                 */
#include 	"CmdStr.h"
#include    "IrqHook.h"                                                 /* 钩子函数                     */

/*********************************************************************************************************
  lpc22xx部件驱动库函数头文件引用,用户根据需要剪裁
*********************************************************************************************************/
#include    "Dac.h"                                                     /* DAC                          */
#include 	"Uart.h"                                                    /* 串口                         */
#include	"I2c.h"                                                     /* I2C                          */
#include	"Gpio.h"                                                    /* GPIO                         */
#include    "SSP.h"                                                     /* SSP                          */
#include    "Timer.h"                                                   /* 定时器                       */
#include    "Pwm.h"                                                     /* PWM                          */
#include    "Eint.h"                                                    /* 外部中断                     */
#include    "Rtc.h"                                                     /* 实时时钟                     */
#include    "Spi.h"                                                     /* SPI                          */
#include    "Adc.h"                                                     /* 模数转换                     */
#include    "WatchDog.h"                                                /* 看门狗                       */
#include    "PowerManage.h"                                             /* 功率管理                     */


#endif                                                                  /* __CONFIG_H                   */
/*********************************************************************************************************
   END FILE
*********************************************************************************************************/

⌨️ 快捷键说明

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