Source File List


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_lms.h contains all the configurable parameters. Configure these as required. For details of these options, see Configuration Options.

Source Code

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

File Description
lms.c Source file for code.
lms.h Header file for code.
lms_hc.c Source file for the HC descriptor.
lms_hc.h HC descriptor header file.
lms_hub.c Source file for hub.
lms_hub.h Header file for hub public functions.
lms_regs.h Register file.

Version File

The file src/version/ver_usbh_lms.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-lms. These provide functions and elements the core code may need to use, depending on the hardware.

Note:

  • These are PSP implementations for the specific microcontroller and board; you may need to modify these to work with a different microcontroller and/or development 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.

The files are as follows:

File
Description
target/usb-host-lms/lms_hw.c Functions source code.
target/usb-host-lms/lms-hw.h Header file for functions.

There is also a version file, ver_psp_usbh_lms_hw.h.