/* Reset control endpoint management. 
Called after a USB line reset or at the end of SETUP request (after ZLP)  */
static void udd_ctrl_init(void)
/* Reset control endpoint management. 
Called after a USB line reset or at the end of SETUP request (after ZLP)  */
static void udd_ctrl_init(void)
{
	irqflags_t flags;
	flags = cpu_irq_save();
	udd_disable_in_send_interrupt(0);
	cpu_irq_restore(flags);
	udd_ack_out_received(0);
	udd_g_ctrlreq.callback = NULL;
	udd_g_ctrlreq.over_under_run = NULL;
	udd_g_ctrlreq.payload_size = 0;
	udd_ep_control_state = UDD_EPCTRL_SETUP;
}