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