author | Tero Marttila <terom@fixme.fi> |
Tue, 26 Jul 2011 22:44:30 +0300 | |
changeset 43 | a0a003083d4c |
parent 39 | d7eac199d323 |
child 45 | 7c684d241675 |
permissions | -rw-r--r-- |
5 | 1 |
AS = avra |
2 |
ASFLAGS = |
|
3 |
||
4 |
AD_PART = m328p |
|
5 |
AD_PROG = arduino |
|
6 |
AD_BAUD = 57600 |
|
43 | 7 |
AD_PORT = /dev/arduino |
5 | 8 |
|
9 |
AD = avrdude |
|
10 |
ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT) |
|
11 |
||
43 | 12 |
PROG = console |
17
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
13 |
|
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
14 |
all: $(PROG).hex |
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
15 |
|
39
d7eac199d323
Implement Text_Load/ShowString
Tero Marttila <terom@fixme.fi>
parents:
38
diff
changeset
|
16 |
matrix.hex: spi.inc matrix.inc timer.inc delay.inc macros.inc font.inc font.def |
29 | 17 |
led7seg.hex: spi.inc led7seg.inc adc.inc timer.inc delay.inc macros.inc |
18 |
timer.hex: timer.inc macros.inc |
|
19 |
||
38
f430b507a885
Working font rendering on LED matrix
Tero Marttila <terom@fixme.fi>
parents:
37
diff
changeset
|
20 |
font.inc: font.def |
f430b507a885
Working font rendering on LED matrix
Tero Marttila <terom@fixme.fi>
parents:
37
diff
changeset
|
21 |
|
17
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
22 |
%.hex: %.s |
5 | 23 |
$(AS) $(ASFLAGS) $< |
17
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
24 |
mv $<.hex $@ |
5 | 25 |
|
38
f430b507a885
Working font rendering on LED matrix
Tero Marttila <terom@fixme.fi>
parents:
37
diff
changeset
|
26 |
font.def: font.txt font-compile.py |
f430b507a885
Working font rendering on LED matrix
Tero Marttila <terom@fixme.fi>
parents:
37
diff
changeset
|
27 |
python font-compile.py $< $@ > /dev/null |
f430b507a885
Working font rendering on LED matrix
Tero Marttila <terom@fixme.fi>
parents:
37
diff
changeset
|
28 |
|
17
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
29 |
upload: $(PROG).hex |
a7c668003a19
split led7seg.s into .inc modules, and update Makefile to use .s -> .hex, and above .inc's for led7seg
Tero Marttila <terom@fixme.fi>
parents:
10
diff
changeset
|
30 |
$(AD) $(ADFLAGS) -U flash:w:$< |
5 | 31 |
|
10 | 32 |
SERIAL_BAUD = 9600 |
33 |
SERIAL_FLOW = n |
|
34 |
SERIAL_PARITY = n |
|
35 |
SERIAL_BITS = 8 |
|
36 |
SERIAL_PORT = $(AD_PORT) |
|
37 |
||
38 |
SERIAL_TERM = picocom |
|
39 |
SERIAL_FLAGS = -b $(SERIAL_BAUD) -f $(SERIAL_FLOW) -p $(SERIAL_PARITY) -d $(SERIAL_BITS) |
|
40 |
||
41 |
chat: |
|
42 |
$(SERIAL_TERM) $(SERIAL_FLAGS) $(SERIAL_PORT) |
|
43 |