source: avrstuff/chiptest/Makefile

main
Last change on this file was 6390cc3, checked in by Adrien Destugues <pulkomandy@…>, 7 years ago

chiptest: Start to hack on ATmega128 and STK500 devboard.

  • Set the proper clock for it (generated by the STK500 master MCU, did

not get crystal working reliably yet)

  • Instead of just 'H', generate the whole alphabet for more action!
  • Use ATmega128 since that's what happens to be seated on my board for

now.

  • Property mode set to 100644
File size: 476 bytes
Line 
1# STK500
2F_CPU=3800000
3MCU=atmega128
4
5# K4KUSB
6#F_CPU=12000000
7#MCU=attiny2313
8
9# muSerial
10# F_CPU=20000000
11#MCU=attiny2313
12
13# Common
14BAUD=9600
15
16all: blinkdel.hex
17
18include ../kbd/common.mk
19
20COMPILE = $(CC) -Wall -std=c99 $(CFLAGS) -I../libs/usart/
21
22VPATH=../libs/usart/
23
24#Rules
25
26$(MCU).bin: main.o usart.o
27 $(COMPILE) $^ -o $@
28
29main.o: main.c
30 $(COMPILE) -c $^ -o $@
31
32#Generic rules
33.S.o:
34 $(COMPILE) -x assembler-with-cpp -c $< -o $@
35
36.c.o:
37 $(COMPILE) -std=c99 -c $< -o $@
38
Note: See TracBrowser for help on using the repository browser.