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.

USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.h

Committer:
mbed_official
Date:
2015-01-19
Revision:
27:4206883f4cb7
Child:
29:d3b77affed28

File content as of revision 27:4206883f4cb7:

/* Copyright (c) 2010-2011 mbed.org, MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#ifndef OHCI_WRAPP_RZ_A1_H
#define OHCI_WRAPP_RZ_A1_H

#ifdef __cplusplus
extern "C" {
#endif

#define OHCI_REG_REVISION           (0x00)
#define OHCI_REG_CONTROL            (0x04)
#define OHCI_REG_COMMANDSTATUS      (0x08)
#define OHCI_REG_INTERRUPTSTATUS    (0x0C)
#define OHCI_REG_INTERRUPTENABLE    (0x10)
#define OHCI_REG_INTERRUPTDISABLE   (0x14)
#define OHCI_REG_HCCA               (0x18)
#define OHCI_REG_PERIODCURRENTED    (0x1C)
#define OHCI_REG_CONTROLHEADED      (0x20)
#define OHCI_REG_CONTROLCURRENTED   (0x24)
#define OHCI_REG_BULKHEADED         (0x28)
#define OHCI_REG_BULKCURRENTED      (0x2C)
#define OHCI_REG_DONEHEADED         (0x30)
#define OHCI_REG_FMINTERVAL         (0x34)
#define OHCI_REG_FMREMAINING        (0x38)
#define OHCI_REG_FMNUMBER           (0x3C)
#define OHCI_REG_PERIODICSTART      (0x40)
#define OHCI_REG_LSTHRESHOLD        (0x44)
#define OHCI_REG_RHDESCRIPTORA      (0x48)
#define OHCI_REG_RHDESCRIPTORB      (0x4C)
#define OHCI_REG_RHSTATUS           (0x50)
#define OHCI_REG_RHPORTSTATUS1      (0x54)

typedef void (usbisr_fnc_t)(void);

extern void ohciwrapp_init(usbisr_fnc_t *p_usbisr_fnc, uint32_t hi_speed);
extern uint32_t ohciwrapp_reg_r(uint32_t reg_ofs);
extern void ohciwrapp_reg_w(uint32_t reg_ofs, uint32_t set_data);
extern void ohciwrapp_interrupt(uint32_t int_sense);

#ifdef __cplusplus
}
#endif

#endif  /* OHCI_WRAPP_RZ_A1_H */