asf/sam/drivers/udphs/udphs_device.c
static void udd_sleep_mode(bool b_idle)
{
	if (!b_idle && udd_b_idle) {
		dbg_print("_S ");
		sleepmgr_unlock_mode(UDPHS_SLEEP_MODE_USB_IDLE);
	}
	if (b_idle && !udd_b_idle) {
		sleepmgr_lock_mode(UDPHS_SLEEP_MODE_USB_IDLE);
		dbg_print("_W ");
	}
	udd_b_idle = b_idle;
}
/*! \brief Authorize or not the CPU powerdown mode
 *
 * \param b_enable   true to authorize idle mode
 */
\brief Authorize or not the CPU powerdown mode
\param b_enable   true to authorize idle mode
\ brief Authorize or not the CPU powerdown mode \ param b_enable true to authorize idle mode
static void udd_sleep_mode(bool b_idle)
{
	if (!b_idle && udd_b_idle) {
		dbg_print("_S ");
		sleepmgr_unlock_mode(UDPHS_SLEEP_MODE_USB_IDLE);
	}
	if (b_idle && !udd_b_idle) {
		sleepmgr_lock_mode(UDPHS_SLEEP_MODE_USB_IDLE);
		dbg_print("_W ");
	}
	udd_b_idle = b_idle;
}
static void udd_sleep_mode ( bool b_idle ) { if ( ! b_idle && udd_b_idle ) { dbg_print ( " " ) ; sleepmgr_unlock_mode ( UDPHS_SLEEP_MODE_USB_IDLE ) ; } if ( b_idle && ! udd_b_idle ) { sleepmgr_lock_mode ( UDPHS_SLEEP_MODE_USB_IDLE ) ; dbg_print ( " " ) ; } udd_b_idle = b_idle ; }
\brief Authorize or not the CPU powerdown mode
 \param b_enable   true to authorize idle mode
\ brief Authorize or not the CPU powerdown mode \ param b_enable true to authorize idle mode