Exemplo n.º 1
0
void udd_detach(void)
{
	otg_unfreeze_clock();
	// Detach device from the bus
	udd_detach_device();
	udd_sleep_mode(false);
}
void udd_detach(void)
{
	// Disable transceiver
	udd_disable_transceiver();
	// Detach device from the bus
	udd_detach_device();
	udd_sleep_mode(false);
}
Exemplo n.º 3
0
void udd_disable(void)
{
	irqflags_t flags;
	flags = cpu_irq_save();
	udd_detach_device();
	// Disable interface
	USB_CTRLA = 0;
	USB_CTRLB = 0;
	sysclk_disable_usb();
	udd_sleep_mode(false);
#ifndef UDD_NO_SLEEP_MGR
	sleepmgr_unlock_mode(USBC_SLEEP_MODE_USB_SUSPEND);
#endif
	cpu_irq_restore(flags);
}
Exemplo n.º 4
0
//! \brief Detaches the USB device of the USB line (= remove USB pull_up)
static void main_detach(void)
{
	udd_detach_device();
	delay_ms(200);
}
Exemplo n.º 5
0
void udd_detach(void)
{
	// Detach device from the bus
	udd_detach_device();
}
//! \brief Detaches the USB device of the USB line (= remove USB pull_up)
static void main_detach(void)
{
	udd_detach_device();
	delay_ms(TST_DETACH_DELAY);
}