Ejemplo n.º 1
0
void acm_start()
{
	task_init(&acm_parse_task, "ACM");

	usb_setup(acm_enumerate, acm_started);
	usb_install_ep_handler(ACM_EP_SEND, USBIn, acm_sent, 0);
	usb_install_ep_handler(ACM_EP_RECV, USBOut, acm_received, 0);
	usb_install_setup_handler(acm_setup);
}
Ejemplo n.º 2
0
static void startUSB()
{
	usb_setup();
	usb_install_ep_handler(4, USBOut, controlReceived, 0);
	usb_install_ep_handler(2, USBOut, dataReceived, 0);
	usb_install_ep_handler(3, USBIn, controlSent, 0);
	usb_install_ep_handler(1, USBIn, dataSent, 0);
	usb_start(enumerateHandler, startHandler);
}
Ejemplo n.º 3
0
void acm_start()
{
	task_init(&acm_parse_task, "ACM", TASK_DEFAULT_STACK_SIZE);

	usb_setup(acm_enumerate, acm_started);
	usb_install_ep_handler(ACM_EP_SEND, USBIn, acm_sent, 0);
	usb_install_ep_handler(ACM_EP_RECV, USBOut, acm_received, 0);
	usb_install_setup_handler(acm_setup);

	acm_prev_printf_handler = addPrintfHandler(acm_buffer_notify);
}