Subversion Repositories svn.mios32

Rev

Rev 2649 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2649 Rev 2657
Line 1... Line 1...
1
// $Id: mios32_midi.c 2649 2019-01-08 11:45:19Z Antichambre $
1
// $Id: mios32_midi.c 2657 2019-01-09 10:52:50Z Antichambre $
2
//! \defgroup MIOS32_MIDI
2
//! \defgroup MIOS32_MIDI
3
//!
3
//!
4
//! MIDI layer functions for MIOS32
4
//! MIDI layer functions for MIOS32
5
//!
5
//!
6
//! the mios32_midi_package_t format complies with USB MIDI spec (details see there)
6
//! the mios32_midi_package_t format complies with USB MIDI spec (details see there)
Line 739... Line 739...
739
  s32 res;
739
  s32 res;
740
#if 0
740
#if 0
741
#if defined(MIOS32_USE_CAN) && defined(MIOS32_USE_CAN_MIDI)
741
#if defined(MIOS32_USE_CAN) && defined(MIOS32_USE_CAN_MIDI)
742
#if defined(MIOS32_CAN_MIDI_SYSEX_DIRECT_STREAM)
742
#if defined(MIOS32_CAN_MIDI_SYSEX_DIRECT_STREAM)
743
  if((port & 0xf0) == MCAN0){
743
  if((port & 0xf0) == MCAN0){
744
    mcan_header_t header;
744
    mios32_mcan_header_t header;
745
    MIOS32_CAN_MIDI_DefaultHeaderInit(&header);
745
    MIOS32_CAN_MIDI_DefaultHeaderInit(&header);
746
    header.cable = port & 0x0f;
746
    header.cable = port & 0x0f;
747
    return MIOS32_CAN_MIDI_SysexSend(header, (u8*)stream, count);
747
    return MIOS32_CAN_MIDI_SysexSend(header, (u8*)stream, count);
748
  }
748
  }
749
#endif
749
#endif