USBInit.c
/*******************************************************************************
* Function Name  : Suspend
* Description    : sets suspend mode operating conditions
* Input          : None.
* Output         : None.
* Return         : USB_SUCCESS.
*******************************************************************************/
Function Name  : Suspend
Description    : sets suspend mode operating conditions
Input          : None.
Output         : None.
Function Name : Suspend Description : sets suspend mode operating conditions Input : None . Output : None .
void Suspend(void)
{
#ifndef STM32F10X_CL
  u16 wCNTR;
  wCNTR = _GetCNTR();
  wCNTR |= CNTR_FSUSP;
  _SetCNTR(wCNTR);
#endif 
#ifndef STM32F10X_CL
  wCNTR = _GetCNTR();
  wCNTR |= CNTR_LPMODE;
  _SetCNTR(wCNTR);
#endif 
  Enter_LowPowerMode();
}
void Suspend ( void ) { #ifndef STM32F10X_CL u16 wCNTR ; wCNTR = _GetCNTR ( ) ; wCNTR |= CNTR_FSUSP ; _SetCNTR ( wCNTR ) ; #endif #ifndef STM32F10X_CL wCNTR = _GetCNTR ( ) ; wCNTR |= CNTR_LPMODE ; _SetCNTR ( wCNTR ) ; #endif Enter_LowPowerMode ( ) ; }
Function Name  : Suspend
Description    : sets suspend mode operating conditions
Input          : None.
Function Name : Suspend Description : sets suspend mode operating conditions Input : None .
/* suspend preparation */ /* ... */ /* macrocell enters suspend mode */ /* STM32F10X_CL */ /* ------------------ ONLY WITH BUS-POWERED DEVICES ---------------------- */ /* power reduction */ /* ... on connected devices */ /* force low-power mode in the macrocell */ /* STM32F10X_CL */ /* switch-off the clocks */ /* ... */