Reverse.Landfill@gmail.com
▼
|
My favorites
▼
|
Profile
|
Sign out
synkie
modular analog video processor
Project Home
Wiki
Issues
Source
Export to GitHub
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
eagle
/
sk010-refgen
/
firmware
/
Makefile
Edit file
‹r126
r144
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#---------------------------------------------------------------------------------------------
#-- REFERENCE GENERATOR - Makefile
#--
#-- Part of the Synkie Project: www.synkie.net
#--
#-- © 2014 Max Egger, Licensed under GNU GPLv3
#--
#--------------------------------------------------------------------------------------------
#------------------------- ATMEGA 88, external 17.734475 MHz Quartz (Subcarrier * 4)
DEVICE = atmega88
F_CPU = 17734475
PROGRAMMER = -c usbasp -P usb
AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
# Choose your favorite programmer and interface above.
FUSEOPT = -U lfuse:w:0xcf:m -U hfuse:w:0xdd:m -U efuse:w:0xff:m
COMPILE = avr-gcc -Wall -Os -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU)#-DDEBUG_LEVEL=2
# NEVER compile the final product with debugging! Any debug output will
# distort timing so that the specs can't be met.
OBJECTS = build/main.o
# symbolic targets:
all: build/main.hex
build:
mkdir build
build/%.o: %.S build
$(COMPILE) -c $< -o $@
build/%.o: %.c build
$(COMPILE) -c $< -o $@
flash: all
$(AVRDUDE) -U flash:w:build/main.hex:i
clean:
rm -rf build
# file targets:
build/main.bin: $(OBJECTS)
$(COMPILE) -o $@ $(OBJECTS)
build/main.hex: build/main.bin
rm -f $@ build/main.eep.hex
avr-objcopy -j .text -j .data -O ihex $< $@
avr-size $@
disasm: build/main.bin
avr-objdump -d build/main.bin > build/main_disasm.lst
cpp:
$(COMPILE) -E main.c
fuse:
$(AVRDUDE) $(FUSEOPT)
Show details
Hide details
Change log
r127
by m...@mysunrise.ch on May 28, 2014
Diff
re-wrote firmware in assembler
Go to:
...e/sk010-refgen/firmware/Makefile
...gle/sk010-refgen/firmware/main.S
...gle/sk010-refgen/firmware/main.c
Older revisions
r126
by m...@mysunrise.ch on May 28, 2014
Diff
added firmware
All revisions of this file
File info
Size: 1449 bytes, 64 lines
View raw file
Powered by
Google Project Hosting