From f9357256249657af2374e3c334b9180e63dc5a30 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 16 Jun 2017 00:22:47 +0200 Subject: Split in different files --- floppyMusic/midi.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 floppyMusic/midi.h (limited to 'floppyMusic/midi.h') diff --git a/floppyMusic/midi.h b/floppyMusic/midi.h new file mode 100644 index 0000000..f30f1c4 --- /dev/null +++ b/floppyMusic/midi.h @@ -0,0 +1,34 @@ +/* + * midi.h + * + * Created: 12.06.2017 20:43:37 + * Author: Jonas + */ + + +#ifndef MIDI_H_ +#define MIDI_H_ + +#define _MIDI_SEND 0 +#define _MIDI_RECIEVE 1 + +#include "uart.h" + +struct midi_command +{ + char command; + char channel; + char note; + char velocity; +}; + + +void midi_setup(); + +void midi_recieve(struct midi_command *_command); + +void midi_send(struct midi_command _command); + + + +#endif /* MIDI_H_ */ \ No newline at end of file -- cgit v1.2.3