1 |
# ====================================================================== |
1 |
# ====================================================================== |
2 |
# Makefile for i2c-tiny-usb |
2 |
# Makefile for i2c-tiny-usb |
3 |
# |
3 |
# |
4 |
# Copyright (C) 2006 Till Harbaum |
4 |
# Copyright (C) 2006 Till Harbaum |
5 |
# |
5 |
# |
6 |
# This is free software, licensed under the terms of the GNU General |
6 |
# This is free software, licensed under the terms of the GNU General |
7 |
# Public License as published by the Free Software Foundation. |
7 |
# Public License as published by the Free Software Foundation. |
8 |
# ====================================================================== |
8 |
# ====================================================================== |
9 |
USBTINY = ./usbtiny |
9 |
USBTINY = ./usbtiny |
10 |
TARGET_ARCH = -DF_CPU=12000000 -DUSBTINY -mmcu=attiny45 |
10 |
TARGET_ARCH = -DF_CPU=12000000 -DUSBTINY -mmcu=attiny45 |
11 |
OBJECTS = main.o |
11 |
OBJECTS = main.o |
12 |
TTY = /dev/ttyUSB0 |
12 |
TTY = /dev/ttyUSB0 |
13 |
# TTY = /dev/ttyS0 |
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 |
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 |
15 |
STACK = 32 |
16 |
FLASH = 4096 |
16 |
FLASH = 4096 |
17 |
SRAM = 256 |
17 |
SRAM = 256 |
18 |
|
18 |
|
19 |
include $(USBTINY)/common.mk |
19 |
include $(USBTINY)/common.mk |