From ec9c000a36953bdae95d4555164bf4ea129bb0d9 Mon Sep 17 00:00:00 2001 From: DaveHodder67 Date: Thu, 2 Jul 2015 10:18:36 +0100 Subject: tidied up headers --- include/app.h | 4 ++++ include/app_defs.h | 45 ++++++++++++++++++++++++++------------------- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/include/app.h b/include/app.h index 8f33e48..87c2bbd 100644 --- a/include/app.h +++ b/include/app.h @@ -33,6 +33,10 @@ *****************************************************************************/ +// ____________________________________________________________________________ +// +// Don't modify this file! This declares the binary interface to the library, +// so modifying it will probably break things. // ____________________________________________________________________________ // #include "app_defs.h" diff --git a/include/app_defs.h b/include/app_defs.h index cc7493b..829f8a6 100644 --- a/include/app_defs.h +++ b/include/app_defs.h @@ -34,6 +34,10 @@ *****************************************************************************/ +// ____________________________________________________________________________ +// +// Don't modify this file! This declares the binary interface to the library, +// so modifying it will probably break things. // ____________________________________________________________________________ // // Types @@ -52,26 +56,26 @@ typedef unsigned char u8; // App structure // ____________________________________________________________________________ -#define TYPEPAD 0 -#define TYPESETUP 1 +#define TYPEPAD 0 +#define TYPESETUP 1 -#define MAXLED 63 +#define MAXLED 63 // ____________________________________________________________________________ // // Useful MIDI constants // ____________________________________________________________________________ -#define NOTEON 0x90 -#define NOTEOFF 0x80 -#define POLYAFTERTOUCH 0xA0 -#define CC 0xB0 -#define CHANNELAFTERTOUCH 0xD0 -#define SONGPOSITIONPOINTER 0xF2 -#define MIDITIMINGCLOCK 0xF8 -#define MIDISTART 0xFA -#define MIDICONTINUE 0xFB -#define MIDISTOP 0xFC +#define NOTEON 0x90 +#define NOTEOFF 0x80 +#define POLYAFTERTOUCH 0xA0 +#define CC 0xB0 +#define CHANNELAFTERTOUCH 0xD0 +#define SONGPOSITIONPOINTER 0xF2 +#define MIDITIMINGCLOCK 0xF8 +#define MIDISTART 0xFA +#define MIDICONTINUE 0xFB +#define MIDISTOP 0xFC // ____________________________________________________________________________ // @@ -79,19 +83,22 @@ typedef unsigned char u8; // ____________________________________________________________________________ // USB MIDI: "Standalone" port -#define USBSTANDALONE 0 +#define USBSTANDALONE 0 // USB MIDI: "MIDI" port -#define USBMIDI 1 +#define USBMIDI 1 // MIDI DIN port -#define DINMIDI 2 - +#define DINMIDI 2 +// ____________________________________________________________________________ +// // MIDI Jack Socket Switch IDs +// ____________________________________________________________________________ -#define MIDI_IN_CABLE 0 -#define MIDI_OUT_CABLE 1 +#define MIDI_IN_CABLE 0 +#define MIDI_OUT_CABLE 1 // ____________________________________________________________________________ + #endif -- cgit v1.2.1