From 583ddd00e2ec2f3a39e48fc0693954b295590a19 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Tue, 25 Mar 2014 12:28:35 +0000 Subject: [PATCH] USB midi now using MIDI_RX_PORT_WIDTH define --- module_usb_midi/src/usb_midi.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/module_usb_midi/src/usb_midi.h b/module_usb_midi/src/usb_midi.h index 6a55ce74..491413ab 100644 --- a/module_usb_midi/src/usb_midi.h +++ b/module_usb_midi/src/usb_midi.h @@ -15,12 +15,18 @@ * \param cable_number the cable number of the MIDI implementation. * This should be set to 0. **/ -void usb_midi(buffered in port:1 ?p_midi_in, port ?p_midi_out, - clock ?clk_midi, - chanend ?c_midi, - unsigned cable_number, -chanend ?c_iap, chanend ?c_i2c, // iOS stuff -port ?p_scl, port ?p_sda +void usb_midi( +#if (MIDI_RX_PORT_WIDTH == 4) +buffered in port:4 ?p_midi_in, +#else +buffered in port:1 ?p_midi_in, +#endif + port ?p_midi_out, + clock ?clk_midi, + chanend ?c_midi, + unsigned cable_number, + chanend ?c_iap, chanend ?c_i2c, // iOS stuff + port ?p_scl, port ?p_sda ); #define MAX_USB_MIDI_PACKET_SIZE 1024