diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-06 13:43:18 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-06 13:43:18 +0000 |
commit | f7ab433c67b86723385ec05ee9c7b96dd18e6dde (patch) | |
tree | 6f5efdffd16bc2bca9c032ef7e6ea944a757b529 /LUFA/Drivers/USB/Class/Device/MIDI.c | |
parent | 1c7aa68596da103137bdfe20f3baa20dcf7faae2 (diff) | |
download | lufa-f7ab433c67b86723385ec05ee9c7b96dd18e6dde.tar.gz lufa-f7ab433c67b86723385ec05ee9c7b96dd18e6dde.tar.bz2 lufa-f7ab433c67b86723385ec05ee9c7b96dd18e6dde.zip |
Add optional double-banking support to the Device mode Class Drivers, on a per-endpoint, per-interface level.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/MIDI.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/MIDI.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/MIDI.c b/LUFA/Drivers/USB/Class/Device/MIDI.c index eede4806b..2685ab0ae 100644 --- a/LUFA/Drivers/USB/Class/Device/MIDI.c +++ b/LUFA/Drivers/USB/Class/Device/MIDI.c @@ -46,7 +46,7 @@ bool MIDI_Device_ConfigureEndpoints(USB_ClassInfo_MIDI_Device_t* const MIDIInter {
if (!(Endpoint_ConfigureEndpoint(MIDIInterfaceInfo->Config.DataINEndpointNumber, EP_TYPE_BULK,
ENDPOINT_DIR_IN, MIDIInterfaceInfo->Config.DataINEndpointSize,
- ENDPOINT_BANK_SINGLE)))
+ MIDIInterfaceInfo->Config.DataINEndpointDoubleBank ? ENDPOINT_BANK_DOUBLE : ENDPOINT_BANK_SINGLE)))
{
return false;
}
@@ -56,7 +56,7 @@ bool MIDI_Device_ConfigureEndpoints(USB_ClassInfo_MIDI_Device_t* const MIDIInter {
if (!(Endpoint_ConfigureEndpoint(MIDIInterfaceInfo->Config.DataOUTEndpointNumber, EP_TYPE_BULK,
ENDPOINT_DIR_OUT, MIDIInterfaceInfo->Config.DataOUTEndpointSize,
- ENDPOINT_BANK_SINGLE)))
+ MIDIInterfaceInfo->Config.DataOUTEndpointDoubleBank ? ENDPOINT_BANK_DOUBLE : ENDPOINT_BANK_SINGLE)))
{
return false;
}
|