From 0ab2cb1c698017e4a81ec17d8677de09553e8683 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Thu, 27 Oct 2011 10:45:13 -0400 Subject: removed old comments and unused USB core code --- bootloaders/diskloader/src/USBCore.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'bootloaders/diskloader/src/USBCore.cpp') diff --git a/bootloaders/diskloader/src/USBCore.cpp b/bootloaders/diskloader/src/USBCore.cpp index 56944e5..4771181 100644 --- a/bootloaders/diskloader/src/USBCore.cpp +++ b/bootloaders/diskloader/src/USBCore.cpp @@ -1,5 +1,4 @@ - /* Copyright (c) 2010, Peter Barrett ** ** Permission to use, copy, modify, and/or distribute this software for @@ -219,7 +218,6 @@ u8 USB_Available(u8 ep) void USB_Recv_block(u8 ep, u8* dst, int len) { -// SetEP(ep & 7); LockEP lock(ep); while (len--) { @@ -277,16 +275,11 @@ int USB_Send(u8 ep, const void* d, int len) int r = len; const u8* data = (const u8*)d; -// u8 zero = ep & TRANSFER_ZERO; - u8 timeout = 250; // 250ms timeout on send? TODO while (len) { u8 n = USB_SendSpace(ep); if (n == 0) { -// if (!(--timeout)) -// return -1; -// delay(1); _delay_ms(1); continue; } @@ -333,10 +326,6 @@ const u8 _initEndpoints[] = EP_TYPE_BULK_OUT, // CDC_ENDPOINT_OUT EP_TYPE_BULK_IN, // CDC_ENDPOINT_IN #endif - -#ifdef HID_ENABLED - EP_TYPE_INTERRUPT_IN // HID_ENDPOINT_INT -#endif }; #define EP_SINGLE_64 0x32 // EP0 @@ -469,10 +458,6 @@ bool SendDescriptor(Setup& setup) return SendConfiguration(setup.wLength); InitControl(setup.wLength); -#ifdef HID_ENABLED - if (HID_REPORT_DESCRIPTOR_TYPE == t) - return HID_GetDescriptor(t); -#endif u8 desc_length = 0; const u8* desc_addr = 0; @@ -607,9 +592,7 @@ ISR(USB_GEN_vect) // Start of Frame - happens every millisecond so we use it for TX and RX LED one-shot timing, too if (udint & (1<