]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/micaz.target
updated AVR specific makefiles with dual support for uisp and avrdude
[tinyos-2.x.git] / support / make / micaz.target
index 677f5118fdd1ffba67d3d1fc5a96537270e0492b..9f3a1f50f29fb7f65bf3d3c80b8fe5216f794429 100644 (file)
@@ -3,9 +3,15 @@
 
 PLATFORM = micaz
 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
 
 $(call TOSMake_include_platform,avr)