diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-05-22 20:22:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-05-22 20:22:35 +0000 |
commit | 3764c9b829535943b7046d979ea98b96ad65766c (patch) | |
tree | 4d3b3cdce0d16b88f62905a7bca5d1bd60201a76 | |
parent | improved CPU_PRESCALE macro (diff) |
added support vor avr net-io (not tested yet)
git-svn-id: https://svn.spreadspace.org/avr/trunk@28 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r-- | blink/Makefile | 2 | ||||
-rw-r--r-- | blink/led.c | 2 | ||||
-rw-r--r-- | include.mk | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/blink/Makefile b/blink/Makefile index 6d9756d..4f20366 100644 --- a/blink/Makefile +++ b/blink/Makefile @@ -22,6 +22,6 @@ NAME := blink
OBJ := blink.o util.o led.o
-BOARD_TYPE := arduinoNG
+BOARD_TYPE := AvrNetIo
include ../include.mk
diff --git a/blink/led.c b/blink/led.c index c945564..60436e2 100644 --- a/blink/led.c +++ b/blink/led.c @@ -23,7 +23,7 @@ #include "avr/io.h" #include "led.h" -#if defined(__BOARD_arduinoUno__) +#if defined(__BOARD_arduinoUno__) || defined(__BOARD_AvrNetIo__) #define HAS_LED 0 #else #define HAS_LED 1 @@ -94,6 +94,14 @@ ifeq ($(BOARD_TYPE),arduinoNG) AVRDUDE_PORT := /dev/ttyUSB0 RESET_FUNC := ../tools/dummy_reset endif +ifeq ($(BOARD_TYPE),AvrNetIo) + MCU := atmega32 + F_CPU := 16000000 + PROG := avrdude + UPLOAD_RATE := 19200 + PROG_TYPE := stk500v2 + AVRDUDE_PORT := /dev/ttyS0 +endif CC = avr-gcc OBJCOPY = avr-objcopy |