3514 |
miho |
1 |
# ====================================================================== |
|
|
2 |
# Makefile for i2c-tiny-usb |
|
|
3 |
# |
|
|
4 |
# Copyright (C) 2006 Till Harbaum |
|
|
5 |
# |
|
|
6 |
# This is free software, licensed under the terms of the GNU General |
|
|
7 |
# Public License as published by the Free Software Foundation. |
|
|
8 |
# ====================================================================== |
|
|
9 |
USBTINY = ./usbtiny |
|
|
10 |
TARGET_ARCH = -DF_CPU=12000000 -DUSBTINY -mmcu=attiny45 |
|
|
11 |
OBJECTS = main.o |
|
|
12 |
TTY = /dev/ttyUSB0 |
|
|
13 |
# TTY = /dev/ttyS0 |
|
|
14 |
FLASH_CMD = avrdude -P$(TTY) -c stk500hvsp -p attiny45 -U lfuse:w:0xdf:m -U hfuse:w:0x5f:m -U flash:w:main.hex |
|
|
15 |
STACK = 32 |
|
|
16 |
FLASH = 4096 |
|
|
17 |
SRAM = 256 |
|
|
18 |
|
|
|
19 |
include $(USBTINY)/common.mk |