These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
usbaudio.h
00001 /*---------------------------------------------------------------------------- 00002 * Name: usbaudio.h 00003 * Purpose: USB Audio Demo Definitions 00004 * Version: V1.10 00005 *---------------------------------------------------------------------------- 00006 * This software is supplied "AS IS" without any warranties, express, 00007 * implied or statutory, including but not limited to the implied 00008 * warranties of fitness for purpose, satisfactory quality and 00009 * noninfringement. Keil extends you a royalty-free right to reproduce 00010 * and distribute executable files created using this software for use 00011 * on NXP Semiconductors LPC family microcontroller devices only. Nothing 00012 * else gives you the right to use this software. 00013 * 00014 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved. 00015 *---------------------------------------------------------------------------*/ 00016 00017 /* Audio Definitions */ 00018 #define DATA_FREQ 32000 /* Audio Data Frequency */ 00019 #define P_S 32 /* Packet Size */ 00020 #if USB_DMA 00021 #define P_C 4 /* Packet Count */ 00022 #else 00023 #define P_C 1 /* Packet Count */ 00024 #endif 00025 #define B_S (8*P_C*P_S) /* Buffer Size */ 00026 00027 /* Push Button Definitions */ 00028 // #define PBINT 0x00004000 /* P0.14 */ 00029 00030 /* LED Definitions */ 00031 #define LEDMSK 0x000000FF /* P2.0..7 */ 00032 00033 /* Audio Demo Variables */ 00034 extern uint8_t Mute; /* Mute State */ 00035 extern uint32_t Volume; /* Volume Level */ 00036 extern uint16_t VolCur; /* Volume Current Value */ 00037 #if !USB_DMA 00038 extern uint32_t InfoBuf[P_C]; /* Packet Info Buffer */ 00039 extern short DataBuf[B_S]; /* Data Buffer */ 00040 #else 00041 extern uint32_t *InfoBuf; 00042 extern short *DataBuf; 00043 #endif 00044 extern uint16_t DataOut; /* Data Out Index */ 00045 extern uint16_t DataIn; /* Data In Index */ 00046 extern uint8_t DataRun; /* Data Stream Run State */
Generated on Tue Jul 12 2022 17:28:10 by 1.7.2