equal
deleted
inserted
replaced
11 |
11 |
12 PROG = matrix |
12 PROG = matrix |
13 |
13 |
14 all: $(PROG).hex |
14 all: $(PROG).hex |
15 |
15 |
16 matrix.hex: spi.inc matrix.inc timer.inc delay.inc macros.inc |
16 matrix.hex: spi.inc matrix.inc timer.inc delay.inc macros.inc font.inc |
17 led7seg.hex: spi.inc led7seg.inc adc.inc timer.inc delay.inc macros.inc |
17 led7seg.hex: spi.inc led7seg.inc adc.inc timer.inc delay.inc macros.inc |
18 timer.hex: timer.inc macros.inc |
18 timer.hex: timer.inc macros.inc |
|
19 |
|
20 font.inc: font.def |
19 |
21 |
20 %.hex: %.s |
22 %.hex: %.s |
21 $(AS) $(ASFLAGS) $< |
23 $(AS) $(ASFLAGS) $< |
22 mv $<.hex $@ |
24 mv $<.hex $@ |
|
25 |
|
26 font.def: font.txt font-compile.py |
|
27 python font-compile.py $< $@ > /dev/null |
23 |
28 |
24 upload: $(PROG).hex |
29 upload: $(PROG).hex |
25 $(AD) $(ADFLAGS) -U flash:w:$< |
30 $(AD) $(ADFLAGS) -U flash:w:$< |
26 |
31 |
27 SERIAL_BAUD = 9600 |
32 SERIAL_BAUD = 9600 |