This is the HCC Embedded Product Documentation.

HCC Embedded Main Website   |    HCC Documentation Home Page  |     Contacting HCC Embedded

This section describes all the source code files included in the system. These files follow the HCC Embedded standard source tree system, described in the HCC Source Tree Guide. All references to file pathnames refer to locations within this standard source tree, not within the package you initially receive.

Note: Do not modify any of these files except the configuration file and PSP files.

API Header File

Configuration File

The file src/config/config_usbh_ohci.h contains all the configurable parameters. Configure these as required. For details of these options, see Configuration Options.

Source Code

These files in src/usb-host/usb-driver/ohci are the source code files. These files should only be modified by HCC.

ohci.cSource file for OHCI code.
ohci.hHeader file for OHCI public functions.
ohci_hc.cSource file for OHCI HC descriptor.
ohci_hc.hOHCI-specific header file.
ohci_hub.cSource file for OHCI hub.
ohci_hub.hHeader file for OHCI hub public functions.
ohci_reg.hOHCI register file.

Version File

The file src/version/ver_usbh_ohci.h contains the version number of this module. This version number is checked by all modules that use this module to ensure system consistency over upgrades.

Platform Support Package (PSP) Files

These files are in the directory src/psp/target/usb_host_ohci. They provide functions and elements the core code may need to use, depending on the hardware.


  • These are PSP implementations for the specific microcontroller and development board; you may need to modify these to work with a different microcontroller and/or board. See PSP Porting for details.
  • In the package these files are offset to avoid overwriting an existing implementation. Copy them to the root hcc directory for use.

psp_usbh_ohci.cFunctions source code.
psp_usbh_ohci.hFunctions header file.