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