forked from PAWPAW-Mirror/lib_xua
USB midi now using MIDI_RX_PORT_WIDTH define
This commit is contained in:
@@ -15,12 +15,18 @@
|
|||||||
* \param cable_number the cable number of the MIDI implementation.
|
* \param cable_number the cable number of the MIDI implementation.
|
||||||
* This should be set to 0.
|
* This should be set to 0.
|
||||||
**/
|
**/
|
||||||
void usb_midi(buffered in port:1 ?p_midi_in, port ?p_midi_out,
|
void usb_midi(
|
||||||
clock ?clk_midi,
|
#if (MIDI_RX_PORT_WIDTH == 4)
|
||||||
chanend ?c_midi,
|
buffered in port:4 ?p_midi_in,
|
||||||
unsigned cable_number,
|
#else
|
||||||
chanend ?c_iap, chanend ?c_i2c, // iOS stuff
|
buffered in port:1 ?p_midi_in,
|
||||||
port ?p_scl, port ?p_sda
|
#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
|
#define MAX_USB_MIDI_PACKET_SIZE 1024
|
||||||
|
|||||||
Reference in New Issue
Block a user