include ${simavr}/Makefile.common
+${board} : ${simavr}/simavr/libsimavr.a
${board} : ${OBJ}/ac_input.o
${board} : ${OBJ}/hd44780.o
${board} : ${OBJ}/hd44780_glut.o
${board} : ${OBJ}/${board}.o
@echo LD $@
- @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) ${simavr}/simavr/libsimavr.a
+ @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS)
clean:
rm -rf obj *.hex *.a *.axf ${board} *.vcd .*.swo .*.swp .*.swm .*.swn
include ${simavr}/Makefile.common
+${board} : ${simavr}/simavr/libsimavr.a
${board} : ${OBJ}/button.o
${board} : ${OBJ}/${board}.o
@echo LD $@
- @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) ${simavr}/simavr/libsimavr.a
+ @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS)
clean:
rm -rf obj *.hex *.a *.axf ${board} *.vcd
avr_load_firmware(avr, &f);
// initialize our 'peripheral'
- button_init(avr, &button);
+ button_init(avr, &button, "button");
// "connect" the output irw of the button to the port pin of the AVR
avr_connect_irq(
button.irq + IRQ_BUTTON_OUT,
include ${simavr}/Makefile.common
+${board} : ${simavr}/simavr/libsimavr.a
${board} : ${OBJ}/button.o
${board} : ${OBJ}/uart_udp.o
${board} : ${OBJ}/${board}.o
@echo LD $@
- @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) ${simavr}/simavr/libsimavr.a
+ @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS)
clean:
rm -rf obj *.a *.axf ${board} *.vcd
include ${simavr}/Makefile.common
+${board} : ${simavr}/simavr/libsimavr.a
${board} : ${OBJ}/button.o
${board} : ${OBJ}/hc595.o
${board} : ${OBJ}/${board}.o
@echo LD $@
- @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) ${simavr}/simavr/libsimavr.a
+ @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS)
clean:
rm -rf obj *.hex *.a *.axf ${board} *.vcd
//
// initialize our 'peripherals'
//
- hc595_init(&shifter);
+ hc595_init(avr, &shifter);
- button_init(avr, &button[B_START]);
+ button_init(avr, &button[B_START], "button.start");
avr_connect_irq(
button[B_START].irq + IRQ_BUTTON_OUT,
avr_io_getirq(avr, AVR_IOCTL_IOPORT_GETIRQ('C'), 0));
- button_init(avr, &button[B_STOP]);
+ button_init(avr, &button[B_STOP], "button.stop");
avr_connect_irq(
button[B_STOP].irq + IRQ_BUTTON_OUT,
avr_io_getirq(avr, AVR_IOCTL_IOPORT_GETIRQ('B'), 1));
- button_init(avr, &button[B_RESET]);
+ button_init(avr, &button[B_RESET], "button.reset");
avr_connect_irq(
button[B_RESET].irq + IRQ_BUTTON_OUT,
avr_io_getirq(avr, AVR_IOCTL_IOPORT_GETIRQ('B'), 0));