USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.

Dependencies:   FATFileSystem mbed-rtos

Dependents:   BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Committer:
mbed_official
Date:
Mon Jan 19 14:30:37 2015 +0000
Revision:
27:4206883f4cb7
Synchronized with git revision 0ab8d2e6b3d884137dcb5c62d29a07abe132bac7

Full URL: https://github.com/mbedmicro/mbed/commit/0ab8d2e6b3d884137dcb5c62d29a07abe132bac7/

RZ_A1H - Implement some USB functions and fix some bugs about USBHost common codes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 27:4206883f4cb7 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
mbed_official 27:4206883f4cb7 2 *
mbed_official 27:4206883f4cb7 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
mbed_official 27:4206883f4cb7 4 * and associated documentation files (the "Software"), to deal in the Software without
mbed_official 27:4206883f4cb7 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
mbed_official 27:4206883f4cb7 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
mbed_official 27:4206883f4cb7 7 * Software is furnished to do so, subject to the following conditions:
mbed_official 27:4206883f4cb7 8 *
mbed_official 27:4206883f4cb7 9 * The above copyright notice and this permission notice shall be included in all copies or
mbed_official 27:4206883f4cb7 10 * substantial portions of the Software.
mbed_official 27:4206883f4cb7 11 *
mbed_official 27:4206883f4cb7 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
mbed_official 27:4206883f4cb7 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
mbed_official 27:4206883f4cb7 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
mbed_official 27:4206883f4cb7 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
mbed_official 27:4206883f4cb7 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mbed_official 27:4206883f4cb7 17 */
mbed_official 27:4206883f4cb7 18
mbed_official 27:4206883f4cb7 19 #ifndef OHCI_WRAPP_RZ_A1_LOCAL_H
mbed_official 27:4206883f4cb7 20 #define OHCI_WRAPP_RZ_A1_LOCAL_H
mbed_official 27:4206883f4cb7 21
mbed_official 27:4206883f4cb7 22 #ifdef __cplusplus
mbed_official 27:4206883f4cb7 23 extern "C" {
mbed_official 27:4206883f4cb7 24 #endif
mbed_official 27:4206883f4cb7 25
mbed_official 27:4206883f4cb7 26 /* ConditionCode */
mbed_official 27:4206883f4cb7 27 #define TD_CC_NOERROR (0)
mbed_official 27:4206883f4cb7 28 #define TD_CC_CRC (1)
mbed_official 27:4206883f4cb7 29 #define TD_CC_BITSTUFFING (2)
mbed_official 27:4206883f4cb7 30 #define TD_CC_DATATOGGLEMISMATCH (3)
mbed_official 27:4206883f4cb7 31 #define TD_CC_STALL (4)
mbed_official 27:4206883f4cb7 32 #define TD_CC_DEVICENOTRESPONDING (5)
mbed_official 27:4206883f4cb7 33 #define TD_CC_PIDCHECKFAILURE (6)
mbed_official 27:4206883f4cb7 34 #define TD_CC_UNEXPECTEDPID (7)
mbed_official 27:4206883f4cb7 35 #define TD_CC_DATAOVERRUN (8)
mbed_official 27:4206883f4cb7 36 #define TD_CC_DATAUNDERRUN (9)
mbed_official 27:4206883f4cb7 37 #define TD_CC_BUFFEROVERRUN (12)
mbed_official 27:4206883f4cb7 38 #define TD_CC_BUFFERUNDERRUN (13)
mbed_official 27:4206883f4cb7 39 #define TD_CC_NOT_ACCESSED_1 (14)
mbed_official 27:4206883f4cb7 40 #define TD_CC_NOT_ACCESSED_2 (15)
mbed_official 27:4206883f4cb7 41
mbed_official 27:4206883f4cb7 42 extern void ohciwrapp_loc_Connect(uint32_t type);
mbed_official 27:4206883f4cb7 43 extern void ohciwrapp_loc_TransEnd(uint32_t pipe, uint32_t ConditionCode);
mbed_official 27:4206883f4cb7 44
mbed_official 27:4206883f4cb7 45 #ifdef __cplusplus
mbed_official 27:4206883f4cb7 46 }
mbed_official 27:4206883f4cb7 47 #endif
mbed_official 27:4206883f4cb7 48
mbed_official 27:4206883f4cb7 49 #endif /* OHCI_WRAPP_RZ_A1_LOCAL_H */