Пример #1
0
bool main_vendor_enable(void)
{
	main_b_vendor_enable = true;
	// Start data reception on OUT endpoints
#if UDI_VENDOR_EPS_SIZE_INT_FS
	main_vendor_int_in_received(UDD_EP_TRANSFER_OK, 0, 0);
#endif
#if UDI_VENDOR_EPS_SIZE_BULK_FS
	main_vendor_bulk_in_received(UDD_EP_TRANSFER_OK, 0, 0);
#endif
#if UDI_VENDOR_EPS_SIZE_ISO_FS
	main_buf_iso_sel=0;
	main_vendor_iso_out_received(UDD_EP_TRANSFER_OK, 0, 0);
#endif
	return true;
}
Пример #2
0
bool main_vendor_enable(void){
	// Start data reception on OUT endpoints
	main_vendor_bulk_in_received(UDD_EP_TRANSFER_OK, 0);
	return true;
}