aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md13
-rwxr-xr-xUSBMidiTransport.c2
-rwxr-xr-xmakefile1
3 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index 23ec0b2..891af65 100644
--- a/README.md
+++ b/README.md
@@ -30,12 +30,13 @@ The majority of the usb-midi specification is in single 4 byte events or packets
Because of this the two streams are split out between packets and sysex data. Some of the USB subsystems are interrupt driven. (maple midi zb) and some like lufa are polling based. The data interface must accommodate this. I am trying to arrive at some glue where the lower layers can provide hooks for the maintainance tasks and simply provide an interface like this.
- bool MidiEventAvailable ([interface])
- void GetMidiEvent ([interface])
- void SendMidiEvent ([interface])
- bool SysexAvaliable ([intervace])
- void GetSysex ([interface])
- void SendSysex (uint8_t *messege, [interface])
+ void InitializeUSBMidi(void);
+ bool USBMidiEventAvailable (void);
+ MIDI_EVENT_PACKET_t GetUSBMidiEvent (void);
+ void SendUSBMidiEvent (MIDI_EVENT_PACKET_t);
+ bool USBSysexAvaliable (void);
+ uint8_t * GetUSBSysex (void);
+ void SendUSBSysex (uint8_t *messege);
The remaining details should be as hidden and interchangable as possible.
diff --git a/USBMidiTransport.c b/USBMidiTransport.c
index 93fe4af..192bbe8 100755
--- a/USBMidiTransport.c
+++ b/USBMidiTransport.c
@@ -68,8 +68,6 @@ USB_ClassInfo_MIDI_Device_t USB_MIDI_Interface =
void InitializeUSBMidi()
{
SetupHardware();
- MIDI_EVENT_PACKET_t e;
-// LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
GlobalInterruptEnable();
}
diff --git a/makefile b/makefile
index e6ee07b..089674f 100755
--- a/makefile
+++ b/makefile
@@ -22,6 +22,7 @@ SRC = main.c USBMidiTransport.c Descriptors.c MinSysex.c $(LUFA_SRC_USB
LUFA_PATH = ../../../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
LD_FLAGS =
+
AVRDUDE_PROGRAMMER = avr109 # Add this
AVRDUDE_PORT = /dev/tty.usbmodem1a21
AVRDUDE_FLAGS = -b57600