aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/src/USBCore.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-09-08 09:12:30 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-09-08 09:12:30 -0400
commit384f8e80fa55b1a704674a4ee19192328ec90abe (patch)
tree1a1d22f7df6f746e9700cee9ef97c66ee10d75b0 /bootloaders/diskloader/src/USBCore.cpp
parentd81084e8e91ec4abc24e4b3f6a9ecb9621a6c736 (diff)
removed all bootloader mass storage and MSC references
Diffstat (limited to 'bootloaders/diskloader/src/USBCore.cpp')
-rw-r--r--bootloaders/diskloader/src/USBCore.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/bootloaders/diskloader/src/USBCore.cpp b/bootloaders/diskloader/src/USBCore.cpp
index 8b071a1..142fc79 100644
--- a/bootloaders/diskloader/src/USBCore.cpp
+++ b/bootloaders/diskloader/src/USBCore.cpp
@@ -18,8 +18,6 @@
#include "Platform.h"
-#define MSC_TX MSC_ENDPOINT_IN
-#define MSC_RX MSC_ENDPOINT_OUT
#define CDC_TX CDC_ENDPOINT_IN
#define CDC_RX CDC_ENDPOINT_OUT
@@ -255,11 +253,6 @@ const u8 _initEndpoints[] =
#endif
EP_TYPE_INTERRUPT_IN, // HID_ENDPOINT_INT
-
-#ifdef MSC_ENABLED
- EP_TYPE_BULK_OUT, // MSC_ENDPOINT_OUT
- EP_TYPE_BULK_IN // MSC_ENDPOINT_IN
-#endif
};
static void InitEndpoints()
@@ -310,19 +303,6 @@ bool USBHook()
_usbLineInfo.lineState = setup.wValueL;
}
-#ifdef MSC_ENABLED
- // MSC Requests
- else if (MSC_GET_MAX_LUN == r)
- {
- Send8(0);
- }
- else if (MSC_RESET == r)
- {
- // MSC_Reset();
- } else
- return false; // unhandled
-#endif
-
return true;
}
@@ -385,8 +365,6 @@ bool SendDescriptor()
{
if (setup.wValueL == 0)
desc_addr = (const u8*)&STRING_LANGUAGE;
- else if (setup.wValueL == ISERIAL)
- desc_addr = (const u8*)&STRING_SERIAL;
else
return false;
} else
@@ -484,8 +462,6 @@ void USBGeneralInterrupt()
}
}
-void SCSITask();
-
void LEDPulse();
int USBGetChar()
{
@@ -494,11 +470,6 @@ int USBGetChar()
USBSetupInterrupt();
USBGeneralInterrupt();
-#ifdef MSC_ENABLED
- // Service disk
- if (HasData(MSC_RX))
- SCSITask();
-#endif
// Read a char
if (HasData(CDC_RX))
{