demo.h
来自「NXP产品LPC23XX的开发板的源文件」· C头文件 代码 · 共 51 行
H
51 行
/*----------------------------------------------------------------------------
* U S B - K e r n e l
*----------------------------------------------------------------------------
* Name: DEMO.h
* Purpose: USB Virtual COM demo definiton file for Philips LPC214x
* Version: V1.04
*----------------------------------------------------------------------------
* This software is supplied "AS IS" without any warranties, express,
* implied or statutory, including but not limited to the implied
* warranties of fitness for purpose, satisfactory quality and
* noninfringement. Keil extends you a royalty-free right to reproduce and
* distribute executable files created using this software for use on
* Philips LPC2xxx microcontroller devices only. Nothing else gives you the
* right to use this software.
*
* Copyright (c) 2005 Keil Software.
* Modified by Philips Semiconductor
*---------------------------------------------------------------------------*/
#ifndef __DEMO_H__
#define __DEMO_H__
#define EINT0 0x00000001
#define EINT1 0x00000002
#define EINT2 0x00000004
#define EINT3 0x00000008
#define EINT0_EDGE 0x00000001
#define EINT1_EDGE 0x00000002
#define EINT2_EDGE 0x00000004
#define EINT3_EDGE 0x00000008
#define EINT0_RISING 0x00000001
#define EINT1_RISING 0x00000002
#define EINT2_RISING 0x00000004
#define EINT3_RISING 0x00000008
#define S2 0x00100000 /* P2.10 */
extern void EINT0_Handler(void) __irq;
extern DWORD EINTInit( void );
/* Push Button Definitions */
/* LED Definitions */
extern void LED_Init(void);
extern void LED_On (unsigned int num);
extern void LED_Off (unsigned int num) ;
extern void LED_Out(unsigned int value) ;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?