Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ohci_wrapp_RZ_A1_local.h 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef OHCI_WRAPP_RZ_A1_LOCAL_H
  19. #define OHCI_WRAPP_RZ_A1_LOCAL_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* ConditionCode */
  24. #define TD_CC_NOERROR (0)
  25. #define TD_CC_CRC (1)
  26. #define TD_CC_BITSTUFFING (2)
  27. #define TD_CC_DATATOGGLEMISMATCH (3)
  28. #define TD_CC_STALL (4)
  29. #define TD_CC_DEVICENOTRESPONDING (5)
  30. #define TD_CC_PIDCHECKFAILURE (6)
  31. #define TD_CC_UNEXPECTEDPID (7)
  32. #define TD_CC_DATAOVERRUN (8)
  33. #define TD_CC_DATAUNDERRUN (9)
  34. #define TD_CC_BUFFEROVERRUN (12)
  35. #define TD_CC_BUFFERUNDERRUN (13)
  36. #define TD_CC_NOT_ACCESSED_1 (14)
  37. #define TD_CC_NOT_ACCESSED_2 (15)
  38. extern void ohciwrapp_loc_Connect(uint32_t type);
  39. extern void ohciwrapp_loc_TransEnd(uint32_t pipe, uint32_t ConditionCode);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* OHCI_WRAPP_RZ_A1_LOCAL_H */