?? config.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 + -