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

📄 config.h

📁 单片机C语言参考程序
💻 H
字号:
/*********************************************************************************************************
**				                               Small RTOS(51)
**                                   The Real-Time Kernel(For Keil c51)
**
**                                  (c) Copyright 2002-2003, chenmingji
**                                           All Rights Reserved
**
**                                                  V1.20.0
**
**
**--------------文件信息--------------------------------------------------------------------------------
**文   件   名: CONFIG.H
**创   建   人: 陈明计
**最后修改日期:  2003年8月17日
**描       述: ex1的与应用相关的配置头文件
**
**--------------历史版本信息----------------------------------------------------------------------------
** 创建人: 陈明计
** 版  本: V1.20.0
** 日 期: 2003年8月17日
** 描 述: 原始版本
**
**--------------当前版本修订------------------------------------------------------------------------------
** 修改人: 
** 日 期:
** 描 述:
**
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/

/********************************/
/*     "以下为系统配置"           */
/********************************/
#include    "..\lpc2100\LPC2106.h"

#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

/********************************/
/*     "操作系统定义"            */
/********************************/
#include "OS_CFG.H"
#include "..\lpc2100\OS_CPU.H"
#include "Target.h"
#include "..\os\OS.H"
#include "..\os\OS_Q.h"
#include "..\os\OS_SEM.h"
#include "..\os\OS_MEM.h"

/********************************/
/*     "以下为程序配置"           */
/********************************/
#include    <stdio.h>
#include    <ctype.h>
#include    <stdlib.h>
#include    <setjmp.h>
#include    <rt_misc.h>
/* 系统设置 */
#define Fosc            11059200                    //晶振频率,10MHz~25MHz,应当与实际一至
#define Fcclk           (Fosc * 4)                  //系统频率,必须为Fosc的整数倍(1~32),且<=60MHZ
#define Fcco            (Fcclk * 4)                 //CCO频率,必须为Fcclk的1、2、4、8倍,范围为156MHz~320MHz
#define Fpclk           (Fcclk / 4) * 1             //VPB时钟频率,只能为(Fcclk / 4)的1、2、4倍

// LPC21000 misc uart0 definitions
#define UART0_PCB_PINSEL_CFG     (uint32)0x00000005
#define UART0_INT_BIT            (uint32)0x0040
#define LCR_DISABLE_LATCH_ACCESS (uint32)0x00000000
#define LCR_ENABLE_LATCH_ACCESS  (uint32)0x00000080
#define LCR_DISABLE_BREAK_TRANS  (uint32)0x00000000
#define LCR_ODD_PARITY           (uint32)0x00000000
#define LCR_ENABLE_PARITY        (uint32)0x00000008
#define LCR_1_STOP_BIT           (uint32)0x00000000
#define LCR_CHAR_LENGTH_8        (uint32)0x00000003 
#define LSR_THR_EMPTY            (uint32)0x00000020

/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

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