Page 1
HCC Embedded is expressly forbidden. HCC Embedded reserves the right to make changes to this document and to the related software at any time and without notice. The information in this document has been carefully checked for its accuracy;...
1 System Overview 1.1 Introduction This guide is for those who want to implement HCC Embedded's USB host stack with NXP Semiconductors' SAF1761 USB host controllers. The NXP devices supported are the SAF1761 and also the legacy products ISP1760, ISP1761, and ISP1763.
Conforms to the HCC Advanced Embedded Framework. Designed for integration with both RTOS and non-RTOS based systems. Integrated with the HCC USB Host stack and all its class drivers. Supports NXP Semiconductors' SAF1761 host controllers and also the legacy ISP1760, ISP1761, and ISP1763 host controllers.
USB SAF1761 Host Controller User Guide 1.3 Compatible Devices The module supports the following devices: Device Notes NXP ISP1760 This is no longer marketed by NXP. NXP ISP1761 This is no longer marketed by NXP. ST ISP1763 This is now produced by ST Microelectronics.
Also follow the when HCC provides package updates. HCC Source Tree Guide This document describes the HCC source tree. It gives an overview of the system to make clear the logic behind its organization. HCC USB Host Base System User Guide This document defines the USB host base system upon which the complete USB stack is built.
1.5 Change History This section describes past changes to this manual. To view or download earlier manuals, see Archive: USB SAF1761 Host Controller User Guide For the history of changes made to the package code itself, see History: usbh_drv_isp176x History: usbc_drv_isp1582_isp176x The current version of this manual is 1.20.
USB SAF1761 Host Controller User Guide 2 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.
3 Source Files in the Common Package This section describes the source code files included in the common package used by both the SAF1761 module and the ISP1582 device low level driver. These files follow the HCC Embedded standard source tree system, described in the HCC Source Tree Guide .
USB SAF1761 Host Controller User Guide 3.4 Platform Support Package (PSP) Files These files are in the directory src/psp/target/usbh_usbd_isp . They 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 development board; you may need to modify these to work with a different microcontroller and/or board.
USB SAF1761 Host Controller User Guide 4 Configuration Options This section lists the available configuration options and their default values. 4.1 SAF1761 Configuration File Set the following system configuration options in the file src/config/config_usbh_isp176x.h MAX_DEVICE The maximum number of devices supported. The default is 2.
Page 12
USB SAF1761 Host Controller User Guide ISP_CHIP_VER_SAF Specify the device type; see Compatible Devices 0 = ISP176x (the default). 1 = SAF176x ISP_32BIT_IF This specifies how ISP is interfaced: 0 = 16bit mode (the default). 1 = in 32 bit mode.
USB SAF1761 Host Controller User Guide 5 Starting the Host Controller This section shows how to start the host controller and describes the task created. It includes a code example. 5.1 usbh_isp_hc This external interface function provides the host controller descriptor required by the usbh_hc_init() function.
USB SAF1761 Host Controller User Guide 5.3 Code Example This example shows how to initialize the host controller. Note the following: There is only one external interface function, usbh_isp_hc() . To link this host controller to the system, you call the usbh_hc_init() function with this function as a parameter.
This section specifies the elements of this package that need porting, depending on the target environment. 6.1 OS Abstraction Layer All HCC modules use the OS Abstraction Layer (OAL) that allows the module to run seamlessly with a wide variety of RTOSes, or without an RTOS.
USB SAF1761 Host Controller User Guide 6.2 PSP Porting The Platform Support Package (PSP) is designed to hold all platform-specific functionality, either because it relies on specific features of a target system, or because this provides the most efficient or flexible solution for the developer.
Page 17
USB SAF1761 Host Controller User Guide Note: HCC can provide samples for different configurations; contact support@hcc-embedded.com Copyright HCC Embedded 2017 www.hcc-embedded.com...
USB SAF1761 Host Controller User Guide psp_isp_init This function is provided by the PSP to initialize the device. This enables the clocks, GPIO pin, external memory interface, and so on. Format psp_isp_init ( void Arguments None. Return Values Return value Description Successful execution.
USB SAF1761 Host Controller User Guide psp_isp_r16 This function is provided by the PSP to read a 16 bit value from the specified address. This macro is configurable for 16 and 32 bit addressing, based on the setting of ISP_32BIT_IF...
USB SAF1761 Host Controller User Guide psp_isp_r32 This function is provided by the PSP to read a 32 bit value from the specified address. This macro is configurable for 16 and 32 bit addressing, based on the setting of ISP_32BIT_IF...
USB SAF1761 Host Controller User Guide psp_isp_w16 This function is provided by the PSP to write a 16 bit value. Format psp_isp_w16 ( a, v ) Arguments Parameter Description Type Where to write the value. uint16_t The value to write.
USB SAF1761 Host Controller User Guide psp_isp_w32 This function is provided by the PSP to write a 32 bit value. Format psp_isp_w32 ( a, v ) Arguments Parameter Description Type Where to write the value. uint32_t The value to write.
USB SAF1761 Host Controller User Guide psp_isph_read_mem This function is provided by the PSP to read from the Host memory area. Format void psp_isph_read_mem ( uint8_t * p_dst, uint32_t addr, uint32_t size ) Arguments Parameter Description Type p_dst Where to put the data read.
USB SAF1761 Host Controller User Guide psp_isph_read_ptd This function is provided by the PSP to read from the PTD. Format void psp_isph_read_ptd ( uint32_t * p_ptd, uint32_t addr, uint16_t size ) Arguments Parameter Description Type p_ptd Where to put the data read.
USB SAF1761 Host Controller User Guide psp_isph_write_mem This function is provided by the PSP to write to the Host memory area. Format void psp_isph_write_mem ( uint32_t addr, uint8_t * p_src, uint32_t size ) Arguments Parameter Description Type addr Where to write to.
USB SAF1761 Host Controller User Guide psp_isph_write_ptd This function is provided by the PSP to write to the PTD. Format void psp_isph_write_ptd ( uint32_t addr, uint32_t * p_ptd, uint16_t size ) Arguments Parameter Description Type addr The address in the PTD to write to.
Need help?
Do you have a question about the USB SAF1761 and is the answer not in the manual?
Questions and answers