Record audio data to a .wav file, complete with header, using the TLV320 CODEC and I2S port

Dependencies:   mbed

Committer:
d_worrall
Date:
Fri Aug 05 15:00:51 2011 +0000
Revision:
0:e7efc8468066
version 2.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
d_worrall 0:e7efc8468066 1 /*
d_worrall 0:e7efc8468066 2 **************************************************************************************************************
d_worrall 0:e7efc8468066 3 * NXP USB Host Stack
d_worrall 0:e7efc8468066 4 *
d_worrall 0:e7efc8468066 5 * (c) Copyright 2008, NXP SemiConductors
d_worrall 0:e7efc8468066 6 * (c) Copyright 2008, OnChip Technologies LLC
d_worrall 0:e7efc8468066 7 * All Rights Reserved
d_worrall 0:e7efc8468066 8 *
d_worrall 0:e7efc8468066 9 * www.nxp.com
d_worrall 0:e7efc8468066 10 * www.onchiptech.com
d_worrall 0:e7efc8468066 11 *
d_worrall 0:e7efc8468066 12 * File : usbhost_err.h
d_worrall 0:e7efc8468066 13 * Programmer(s) : Ravikanth.P
d_worrall 0:e7efc8468066 14 * Version :
d_worrall 0:e7efc8468066 15 *
d_worrall 0:e7efc8468066 16 **************************************************************************************************************
d_worrall 0:e7efc8468066 17 */
d_worrall 0:e7efc8468066 18
d_worrall 0:e7efc8468066 19 #ifndef USBHOST_ERR_H
d_worrall 0:e7efc8468066 20 #define USBHOST_ERR_H
d_worrall 0:e7efc8468066 21
d_worrall 0:e7efc8468066 22
d_worrall 0:e7efc8468066 23 /*
d_worrall 0:e7efc8468066 24 **************************************************************************************************************
d_worrall 0:e7efc8468066 25 * GENERAL DEFINITIONS
d_worrall 0:e7efc8468066 26 **************************************************************************************************************
d_worrall 0:e7efc8468066 27 */
d_worrall 0:e7efc8468066 28
d_worrall 0:e7efc8468066 29 #define OK 0
d_worrall 0:e7efc8468066 30 #define MATCH_FOUND 0
d_worrall 0:e7efc8468066 31
d_worrall 0:e7efc8468066 32 /*
d_worrall 0:e7efc8468066 33 **************************************************************************************************************
d_worrall 0:e7efc8468066 34 * HOST CONTROLLER SPECIFIC ERROR CODES
d_worrall 0:e7efc8468066 35 **************************************************************************************************************
d_worrall 0:e7efc8468066 36 */
d_worrall 0:e7efc8468066 37
d_worrall 0:e7efc8468066 38 #define ERR_TD_FAIL -1
d_worrall 0:e7efc8468066 39
d_worrall 0:e7efc8468066 40 /*
d_worrall 0:e7efc8468066 41 **************************************************************************************************************
d_worrall 0:e7efc8468066 42 * MASS STORAGE SPECIFIC ERROR CODES
d_worrall 0:e7efc8468066 43 **************************************************************************************************************
d_worrall 0:e7efc8468066 44 */
d_worrall 0:e7efc8468066 45
d_worrall 0:e7efc8468066 46 #define ERR_MS_CMD_FAILED -10
d_worrall 0:e7efc8468066 47 #define ERR_BAD_CONFIGURATION -11
d_worrall 0:e7efc8468066 48 #define ERR_NO_MS_INTERFACE -12
d_worrall 0:e7efc8468066 49
d_worrall 0:e7efc8468066 50 /*
d_worrall 0:e7efc8468066 51 **************************************************************************************************************
d_worrall 0:e7efc8468066 52 * FAT SPECIFIC ERROR CODES
d_worrall 0:e7efc8468066 53 **************************************************************************************************************
d_worrall 0:e7efc8468066 54 */
d_worrall 0:e7efc8468066 55
d_worrall 0:e7efc8468066 56 #define MATCH_NOT_FOUND -20
d_worrall 0:e7efc8468066 57 #define ERR_FAT_NOT_SUPPORTED -21
d_worrall 0:e7efc8468066 58 #define ERR_OPEN_LIMIT_REACHED -22
d_worrall 0:e7efc8468066 59 #define ERR_INVALID_BOOT_SIG -23
d_worrall 0:e7efc8468066 60 #define ERR_INVALID_BOOT_SEC -24
d_worrall 0:e7efc8468066 61 #define ERR_ROOT_DIR_FULL -25
d_worrall 0:e7efc8468066 62
d_worrall 0:e7efc8468066 63 #endif