]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/mica2.target
updated AVR specific makefiles with dual support for uisp and avrdude
[tinyos-2.x.git] / support / make / mica2.target
index a5e06f59661b0db50d09075da85acd5e66691a17..b81960f2bb3cbca23aa5a3ed150528c5955d7faa 100644 (file)
@@ -3,8 +3,14 @@
 
 PLATFORM = mica2
 SENSORBOARD ?= micasb
-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