]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/mica2dot.target
updated AVR specific makefiles with dual support for uisp and avrdude
[tinyos-2.x.git] / support / make / mica2dot.target
index 5b43738f24c9ffa1fcf043f5692f668a5c140ab8..55980269ab903c0a7a905dc9433a614c57d870ca 100644 (file)
@@ -2,8 +2,15 @@
 #$Id$
 
 PLATFORM = mica2dot
-PROGRAMMER_PART ?= -dpart=ATmega128 --wr_fuse_e=ff
-PFLAGS += -finline-limit=100000
+
+PROGRAMMER ?= uisp
+ifeq ($(PROGRAMMER),avrdude)
+  PROGRAMMER_PART ?= -pm128  -U efuse:w:0xff:m
+endif
+
+ifeq ($(PROGRAMMER),uisp)
+  PROGRAMMER_PART ?= -dpart=ATmega128  --wr_fuse_e=ff
+endif
 
 AVR_FUSE_H ?= 0xd9