📄 includes.h
字号:
/*
*********************************************************************************************************
* EXAMPLE CODE
*
* (c) Copyright 2003-2006; Micrium, Inc.; Weston, FL
*
* All rights reserved. Protected by international copyright laws.
* Knowledge of the source code may NOT be used to develop a similar product.
* Please help us continue to provide the Embedded community with the finest
* software available. Your honesty is greatly appreciated.
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* MASTER INCLUDES
*
* NXP LPC2378
* on the
* Keil MCB2300
*
* Filename : includes.h
* Version : V1.00
* Programmer(s) : BAN
*********************************************************************************************************
*/
#ifndef __INCLUDES_H__
#define __INCLUDES_H__
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
//#include <iolpc2378.h>
#include <LPC23XX.h>
#define VICIntEnClear VICIntEnClr
#define VICAddress VICVectAddr
#define ADDR0 AD0DR0
#define ADDR1 AD0DR1
#define ADDR2 AD0DR2
#define ADDR3 AD0DR3
#define ADDR4 AD0DR4
#define ADDR5 AD0DR5
#define ADDR6 AD0DR6
#define ADDR7 AD0DR7
#define IO0PIN IOPIN0
#define IO0SET IOSET0
#define IO0DIR IODIR0
#define IO0CLR IOCLR0
#define IO1PIN IOPIN1
#define IO1SET IOSET1
#define IO1DIR IODIR1
#define IO1CLR IOCLR1
/***************************************************************************
**
** VIC Interrupt channels
**
***************************************************************************/
#define VIC_WDT 0 /* Watchdog */
#define VIC_SW 1 /* Software interrupts */
#define VIC_DEBUGRX 2 /* Embedded ICE, DbgCommRx */
#define VIC_DEBUGTX 3 /* Embedded ICE, DbgCommTx */
#define VIC_TIMER0 4 /* Timer 0 (Match 0-3 Capture 0-3) */
#define VIC_TIMER1 5 /* Timer 1 (Match 0-3 Capture 0-3) */
#define VIC_UART0 6 /* UART 0 (RLS, THRE, RDA, CTI) */
#define VIC_UART1 7 /* UART 1 (RLS, THRE, RDA, CTI, MSI) */
#define VIC_PWM01 8 /* PWM 01 (Match 0-6 Capture 0-3) */
#define VIC_I2C0 9 /* I2C 0 (SI) */
#define VIC_SPI 10 /* SPI 0, SSP 0 */
#define VIC_SSP1 11 /* SSP 1 */
#define VIC_PLL 12 /* PLL lock (PLOCK) */
#define VIC_RTC 13 /* RTC (RTCCIF, RTCALF) */
#define VIC_EINT0 14 /* External interrupt 0 (EINT0) */
#define VIC_EINT1 15 /* External interrupt 1 (EINT1) */
#define VIC_EINT2 16 /* External interrupt 2 (EINT2) */
#define VIC_EINT3 17 /* External interrupt 3 (EINT3) */
#define VIC_AD0 18 /* A/D converter 0 */
#define VIC_I2C1 19 /* I2C 1 */
#define VIC_BOD 20 /* Brown out detect */
#define VIC_ETHERNET 21 /* Ethernet */
#define VIC_USB 22 /* USB Low and High priority */
#define VIC_CAN12 23 /* CAN1,2 Tx, Rx */
#define VIC_MMC 24 /* SD/MMC */
#define VIC_GP_DMA 25 /* DMA channel 0, DMA channel 1 */
#define VIC_TIMER2 26 /* Timer 2 (Match 0-3 Capture 0-3) */
#define VIC_TIMER3 27 /* Timer 3 (Match 0-3 Capture 0-3) */
#define VIC_UART2 28 /* UART 2 (RLS, THRE, RDA, CTI) */
#define VIC_UART3 29 /* UART 3 (RLS, THRE, RDA, CTI, MSI) */
#define VIC_I2C2 30 /* I2C 0 (SI) */
#define VIC_I2S 31 /* I2S Rx, Tx */
#include <ucos_ii.h>
#include <cpu.h>
#include <lib_def.h>
#include <lib_mem.h>
#include <lib_str.h>
#include <app_cfg.h>
#include <bsp.h>
#if uC_LCD_MODULE > 0
#include <lcd_.h>
#endif
#if (OS_VIEW_MODULE > 0)
#include <os_viewc.h>
#include <os_view.h>
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -