AM243x MCU+ SDK  10.00.00

Introduction

This file contains USB initialization APIs.

Go to the source code of this file.

Data Structures

struct  usb_init_param_t
 USB intialization parameter block. More...
 

Macros

USB Instance Number (usb_init_param_s.instanceNum)

#define USB_INSTANCE_0   (0x00U)
 USB Instance 0. More...
 
USB Clock Out Selection Value (usb_init_param_s.clkSrcSel)

#define USB_CLK_SEL_HFOSC0_CLKOUT   (0x00U)
 Use HFOSC0 CLKOUT. More...
 
#define USB_CLK_SEL_HFOSC1_CLKOUT   (0x01U)
 Use HFOSC1 CLKOUT. More...
 
#define USB_MAIN_PLL3_HSDIV4_CLKOUT   (0x02U)
 Use MAIN_PLL3_HSDIV4_CLKOUT. More...
 
#define USB_MAIN_PLL2_HSDIV4_CLKOUT   (0x03U)
 Use MAIN_PLL2_HSDIV4_CLKOUT. More...
 
USB PLL Reference Clock Frequency Selection Value (usb_init_param_s.pllRefSel)

#define USB_PLL_REF_CLK_9P6MHZ   (0x00)
 Use 9.6Mhz. More...
 
#define USB_PLL_REF_CLK_10MHZ   (0x01)
 Use 10Mhz. More...
 
#define USB_PLL_REF_CLK_12MHZ   (0x02)
 Use 12Mhz. More...
 
#define USB_PLL_REF_CLK_19P2MHZ   (0x03)
 Use 19.2Mhz. More...
 
#define USB_PLL_REF_CLK_20MHZ   (0x04)
 Use 20Mhz. More...
 
#define USB_PLL_REF_CLK_24MHZ   (0x05)
 Use 24Mhz. More...
 
#define USB_PLL_REF_CLK_25MHZ   (0x06)
 Use 25Mhz. More...
 
#define USB_PLL_REF_CLK_26MHZ   (0x07)
 Use 26Mhz. More...
 
#define USB_PLL_REF_CLK_38P4MHZ   (0x08)
 Use 38.4Mhz. More...
 
#define USB_PLL_REF_CLK_40MHZ   (0x09)
 Use 40Mhz. More...
 
#define USB_PLL_REF_CLK_48MHZ   (0x0A)
 Use 48Mhz. More...
 
#define USB_PLL_REF_CLK_50MHZ   (0x0B)
 Use 50Mhz. More...
 
#define USB_PLL_REF_CLK_52MHZ   (0x0C)
 Use 52Mhz. More...
 
USB Mode Value (usb_init_param_s.usb2Enable)

#define USB_MODE_3P0   (0x0)
 USB 3.0 mode. More...
 
#define USB_MODE_2P0   (0x1)
 USB 2.0 mode. More...
 
USB Pipe Receive Invert Polarity Value (usb_init_param_s.invertPolarity)

#define USB_PIPE_RX_INVERT_POLARITY_DISABLED   (0x0)
 USB Pipe Receive Invert Polarity Disabled. More...
 
#define USB_PIPE_RX_INVERT_POLARITY_ENABLED   (0x1)
 USB 2.0 only enable (USB 3.0 disabled) More...
 
USB VBUS External Divider Value (usb_init_param_s.vbusSel)

#define USB_VBUS_EXT_DIV3_INACTIVE   (0x0)
 VBUS External Divider Inactive. More...
 
#define USB_VBUS_EXT_DIV3_ACTIVE   (0x1)
 VBUS External Divider active. More...
 
USB Host Mode Value (usb_init_param_s.isHostMode)

#define USB_HOST_MODE_DISABLED   (0x0)
 USB Host Mode Disabled. More...
 
#define USB_HOST_MODE_ENABLED   (0x1)
 USB Host Mode Enabled. More...
 

Functions

void usb_init (usb_init_param_t *usbInitParamPtr)
 USB Initialization function. More...
 
void cusbd_dsr (void) __attribute__((weak))