These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
USBDEV/USBHID/demo.h@0:bf7b9fba3924, 2011-03-20 (annotated)
- Committer:
- frank26080115
- Date:
- Sun Mar 20 05:38:56 2011 +0000
- Revision:
- 0:bf7b9fba3924
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
frank26080115 | 0:bf7b9fba3924 | 1 | /*---------------------------------------------------------------------------- |
frank26080115 | 0:bf7b9fba3924 | 2 | * Name: DEMO.H |
frank26080115 | 0:bf7b9fba3924 | 3 | * Purpose: USB HID Demo Definitions |
frank26080115 | 0:bf7b9fba3924 | 4 | * Version: V1.10 |
frank26080115 | 0:bf7b9fba3924 | 5 | *---------------------------------------------------------------------------- |
frank26080115 | 0:bf7b9fba3924 | 6 | * This software is supplied "AS IS" without any warranties, express, |
frank26080115 | 0:bf7b9fba3924 | 7 | * implied or statutory, including but not limited to the implied |
frank26080115 | 0:bf7b9fba3924 | 8 | * warranties of fitness for purpose, satisfactory quality and |
frank26080115 | 0:bf7b9fba3924 | 9 | * noninfringement. Keil extends you a royalty-free right to reproduce |
frank26080115 | 0:bf7b9fba3924 | 10 | * and distribute executable files created using this software for use |
frank26080115 | 0:bf7b9fba3924 | 11 | * on NXP Semiconductors LPC family microcontroller devices only. Nothing |
frank26080115 | 0:bf7b9fba3924 | 12 | * else gives you the right to use this software. |
frank26080115 | 0:bf7b9fba3924 | 13 | * |
frank26080115 | 0:bf7b9fba3924 | 14 | * Copyright (c) 2005-2009 Keil Software. |
frank26080115 | 0:bf7b9fba3924 | 15 | *---------------------------------------------------------------------------*/ |
frank26080115 | 0:bf7b9fba3924 | 16 | |
frank26080115 | 0:bf7b9fba3924 | 17 | /* Push Button Definitions */ |
frank26080115 | 0:bf7b9fba3924 | 18 | #define PBINT 0x00000400 /* P2.10 */ |
frank26080115 | 0:bf7b9fba3924 | 19 | |
frank26080115 | 0:bf7b9fba3924 | 20 | /* LED Definitions */ |
frank26080115 | 0:bf7b9fba3924 | 21 | #define LEDMSK 0x000000FF /* P2.0..7 */ |
frank26080115 | 0:bf7b9fba3924 | 22 | |
frank26080115 | 0:bf7b9fba3924 | 23 | /* HID Demo Variables */ |
frank26080115 | 0:bf7b9fba3924 | 24 | extern uint8_t InReport; |
frank26080115 | 0:bf7b9fba3924 | 25 | extern uint8_t OutReport; |
frank26080115 | 0:bf7b9fba3924 | 26 | |
frank26080115 | 0:bf7b9fba3924 | 27 | /* HID Demo Functions */ |
frank26080115 | 0:bf7b9fba3924 | 28 | extern void GetInReport (void); |
frank26080115 | 0:bf7b9fba3924 | 29 | extern void SetOutReport (void); |