Commit e4ea397b authored by Jacob Vosmaer's avatar Jacob Vosmaer

Test harness for midi

parent af9dbb4a
......@@ -5,3 +5,4 @@
*.bin
*.map
*.elf
midi-test
......@@ -75,6 +75,12 @@ all: $(PRG).elf lst text
$(PRG).elf: $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
TESTCC = gcc -Wall -std=c99
test:
$(TESTCC) -o midi-test midi-test.c midi.c
./midi-test
clean:
rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak
rm -rf *.lst *.map $(EXTRA_CLEAN_FILES)
......
#include <stdio.h>
#include "midi.h"
void status_init(void);
int
main(int argc, char** argv)
{
status_init();
printf("hello world\n");
}
void uart_init(void) { }
uint16_t uart_read(void) { return 0; }
......@@ -7,6 +7,7 @@ UART I/O and MIDI parsing.
*/
#include "midi.h"
#include "uart.h"
uint8_t midi_channel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment