summaryrefslogtreecommitdiffstats
path: root/quantum/midi/qmk_midi.h
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-04-26 16:32:15 +0800
committerlokher <lokher@gmail.com>2023-04-26 16:32:15 +0800
commite4f4ceaf3f2e3d25fb282273a81f9b58790fc427 (patch)
treec0a257eab0ffe5238fdf2c04882e8ee1fe8fc46e /quantum/midi/qmk_midi.h
parent103badc87cb50db1ff3851c84331e86ba78fb681 (diff)
merge upstream 713427c
Diffstat (limited to 'quantum/midi/qmk_midi.h')
-rw-r--r--quantum/midi/qmk_midi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/midi/qmk_midi.h b/quantum/midi/qmk_midi.h
new file mode 100644
index 0000000000..819087a405
--- /dev/null
+++ b/quantum/midi/qmk_midi.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#ifdef MIDI_ENABLE
+# include "midi.h"
+# include <LUFA/Drivers/USB/USB.h>
+extern MidiDevice midi_device;
+void setup_midi(void);
+void send_midi_packet(MIDI_EventPacket_t* event);
+bool recv_midi_packet(MIDI_EventPacket_t* const event);
+#endif