diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2017-06-16 00:22:47 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2017-06-16 00:22:47 +0200 |
commit | f9357256249657af2374e3c334b9180e63dc5a30 (patch) | |
tree | 32b4b0990d77467a17eb77a52186060460b82fdd /floppyMusic/midi.h | |
parent | a5ae30562fc5adbabaf46763b8826ac4d843c26e (diff) | |
download | avrFloppy-f9357256249657af2374e3c334b9180e63dc5a30.tar.gz |
Split in different files
Diffstat (limited to 'floppyMusic/midi.h')
-rw-r--r-- | floppyMusic/midi.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 |