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
Child:
29:d3b77affed28
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_H
mbed_official 27:4206883f4cb7 20 #define OHCI_WRAPP_RZ_A1_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 #define OHCI_REG_REVISION (0x00)
mbed_official 27:4206883f4cb7 27 #define OHCI_REG_CONTROL (0x04)
mbed_official 27:4206883f4cb7 28 #define OHCI_REG_COMMANDSTATUS (0x08)
mbed_official 27:4206883f4cb7 29 #define OHCI_REG_INTERRUPTSTATUS (0x0C)
mbed_official 27:4206883f4cb7 30 #define OHCI_REG_INTERRUPTENABLE (0x10)
mbed_official 27:4206883f4cb7 31 #define OHCI_REG_INTERRUPTDISABLE (0x14)
mbed_official 27:4206883f4cb7 32 #define OHCI_REG_HCCA (0x18)
mbed_official 27:4206883f4cb7 33 #define OHCI_REG_PERIODCURRENTED (0x1C)
mbed_official 27:4206883f4cb7 34 #define OHCI_REG_CONTROLHEADED (0x20)
mbed_official 27:4206883f4cb7 35 #define OHCI_REG_CONTROLCURRENTED (0x24)
mbed_official 27:4206883f4cb7 36 #define OHCI_REG_BULKHEADED (0x28)
mbed_official 27:4206883f4cb7 37 #define OHCI_REG_BULKCURRENTED (0x2C)
mbed_official 27:4206883f4cb7 38 #define OHCI_REG_DONEHEADED (0x30)
mbed_official 27:4206883f4cb7 39 #define OHCI_REG_FMINTERVAL (0x34)
mbed_official 27:4206883f4cb7 40 #define OHCI_REG_FMREMAINING (0x38)
mbed_official 27:4206883f4cb7 41 #define OHCI_REG_FMNUMBER (0x3C)
mbed_official 27:4206883f4cb7 42 #define OHCI_REG_PERIODICSTART (0x40)
mbed_official 27:4206883f4cb7 43 #define OHCI_REG_LSTHRESHOLD (0x44)
mbed_official 27:4206883f4cb7 44 #define OHCI_REG_RHDESCRIPTORA (0x48)
mbed_official 27:4206883f4cb7 45 #define OHCI_REG_RHDESCRIPTORB (0x4C)
mbed_official 27:4206883f4cb7 46 #define OHCI_REG_RHSTATUS (0x50)
mbed_official 27:4206883f4cb7 47 #define OHCI_REG_RHPORTSTATUS1 (0x54)
mbed_official 27:4206883f4cb7 48
mbed_official 27:4206883f4cb7 49 typedef void (usbisr_fnc_t)(void);
mbed_official 27:4206883f4cb7 50
mbed_official 27:4206883f4cb7 51 extern void ohciwrapp_init(usbisr_fnc_t *p_usbisr_fnc, uint32_t hi_speed);
mbed_official 27:4206883f4cb7 52 extern uint32_t ohciwrapp_reg_r(uint32_t reg_ofs);
mbed_official 27:4206883f4cb7 53 extern void ohciwrapp_reg_w(uint32_t reg_ofs, uint32_t set_data);
mbed_official 27:4206883f4cb7 54 extern void ohciwrapp_interrupt(uint32_t int_sense);
mbed_official 27:4206883f4cb7 55
mbed_official 27:4206883f4cb7 56 #ifdef __cplusplus
mbed_official 27:4206883f4cb7 57 }
mbed_official 27:4206883f4cb7 58 #endif
mbed_official 27:4206883f4cb7 59
mbed_official 27:4206883f4cb7 60 #endif /* OHCI_WRAPP_RZ_A1_H */