Writing data to and from a USB stick

Dependencies:   mbed

Committer:
ms523
Date:
Sun Nov 06 15:45:12 2011 +0000
Revision:
0:5934350323b2
Working with a USB stick

Who changed what in which revision?

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