Refactor usb midi

This commit is contained in:
Russell
2011-12-16 12:26:17 +00:00
parent 9bcc2cf2b0
commit 6bf8d1c475
4 changed files with 227 additions and 166 deletions

View File

@@ -40,7 +40,7 @@ void midi_get_ack_or_data(chanend c, int &is_ack, unsigned int &datum);
INLINE void midi_get_ack_or_data(chanend c, int &is_ack, unsigned int &datum) {
if (testct(c)) {
is_ack = 1;
(void) inct(c);
(void) inct(c); // read 1-bytes control token
(void) inuchar(c);
(void) inuchar(c);
(void) inuchar(c);
@@ -52,7 +52,6 @@ INLINE void midi_get_ack_or_data(chanend c, int &is_ack, unsigned int &datum) {
}
#endif
INLINE void midi_send_ack(chanend c) {
outct(c, MIDI_ACK);
outuchar(c, 0);
@@ -60,5 +59,4 @@ INLINE void midi_send_ack(chanend c) {
outuchar(c, 0);
}
#endif // __usb_midi_h__