These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /*----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 2 * Name: usbaudio.h
frank26080115 0:bf7b9fba3924 3 * Purpose: USB Audio 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) 2009 Keil - An ARM Company. All rights reserved.
frank26080115 0:bf7b9fba3924 15 *---------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 16
frank26080115 0:bf7b9fba3924 17 /* Audio Definitions */
frank26080115 0:bf7b9fba3924 18 #define DATA_FREQ 32000 /* Audio Data Frequency */
frank26080115 0:bf7b9fba3924 19 #define P_S 32 /* Packet Size */
frank26080115 0:bf7b9fba3924 20 #if USB_DMA
frank26080115 0:bf7b9fba3924 21 #define P_C 4 /* Packet Count */
frank26080115 0:bf7b9fba3924 22 #else
frank26080115 0:bf7b9fba3924 23 #define P_C 1 /* Packet Count */
frank26080115 0:bf7b9fba3924 24 #endif
frank26080115 0:bf7b9fba3924 25 #define B_S (8*P_C*P_S) /* Buffer Size */
frank26080115 0:bf7b9fba3924 26
frank26080115 0:bf7b9fba3924 27 /* Push Button Definitions */
frank26080115 0:bf7b9fba3924 28 // #define PBINT 0x00004000 /* P0.14 */
frank26080115 0:bf7b9fba3924 29
frank26080115 0:bf7b9fba3924 30 /* LED Definitions */
frank26080115 0:bf7b9fba3924 31 #define LEDMSK 0x000000FF /* P2.0..7 */
frank26080115 0:bf7b9fba3924 32
frank26080115 0:bf7b9fba3924 33 /* Audio Demo Variables */
frank26080115 0:bf7b9fba3924 34 extern uint8_t Mute; /* Mute State */
frank26080115 0:bf7b9fba3924 35 extern uint32_t Volume; /* Volume Level */
frank26080115 0:bf7b9fba3924 36 extern uint16_t VolCur; /* Volume Current Value */
frank26080115 0:bf7b9fba3924 37 #if !USB_DMA
frank26080115 0:bf7b9fba3924 38 extern uint32_t InfoBuf[P_C]; /* Packet Info Buffer */
frank26080115 0:bf7b9fba3924 39 extern short DataBuf[B_S]; /* Data Buffer */
frank26080115 0:bf7b9fba3924 40 #else
frank26080115 0:bf7b9fba3924 41 extern uint32_t *InfoBuf;
frank26080115 0:bf7b9fba3924 42 extern short *DataBuf;
frank26080115 0:bf7b9fba3924 43 #endif
frank26080115 0:bf7b9fba3924 44 extern uint16_t DataOut; /* Data Out Index */
frank26080115 0:bf7b9fba3924 45 extern uint16_t DataIn; /* Data In Index */
frank26080115 0:bf7b9fba3924 46 extern uint8_t DataRun; /* Data Stream Run State */