Functions | |
void | USBDualModeInit (uint32_t ui32Index) |
void | USBDualModeTerm (uint32_t ui32Index) |
void USBDualModeInit | ( | uint32_t | ui32Index | ) |
Initializes the USB controller for dual mode operation.
ui32Index | specifies the USB controller that is to be initialized for dual mode operation. This parameter must be set to 0. |
This function initializes the USB controller hardware into a state suitable for dual mode operation. Applications may use this function to ensure that the controller is in a neutral state and able to receive appropriate interrupts before host or device mode is chosen using a call to USBStackModeSet().
References g_psDCDInst, InternalUSBTickInit(), USBHCDPowerAutomatic(), and USBHCDPowerConfigGet().
void USBDualModeTerm | ( | uint32_t | ui32Index | ) |
Returns the USB controller to the default mode when in dual mode operation.
ui32Index | specifies the USB controller whose dual mode operation is to be ended. This parameter must be set to 0. |
Applications using both host and device modes may call this function to disable interrupts in preparation for shutdown or a change of operating mode.
References g_psDCDInst.