X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=support%2Fmake%2Favr%2Fmib510.extra;fp=support%2Fmake%2Favr%2Fmib510.extra;h=6b8189270356e0239d1dc1d41fc4f6ac8005acba;hb=1ba974b83d19fc41bf80acd52726f36f7f1df297;hp=0000000000000000000000000000000000000000;hpb=4db69a460ad5d18d33cbf5c3ef74ad584d9e2886;p=tinyos-2.x.git diff --git a/support/make/avr/mib510.extra b/support/make/avr/mib510.extra new file mode 100644 index 00000000..6b818927 --- /dev/null +++ b/support/make/avr/mib510.extra @@ -0,0 +1,17 @@ +#-*-Makefile-*- vim:syntax=make +#$Id$ + +ifeq ($(MIB510),) +$(error MIB510 must be defined, try "make $(TARGETS) help") +endif + +PROGRAM = mib510 +PROGRAMMER_FLAGS = -dprog=mib510 -dserial=$(MIB510) --wr_fuse_h=$(AVR_FUSE_H) $(PROGRAMMER_PART) $(PROGRAMMER_EXTRA_FLAGS_MIB) + +program: FORCE + @echo " installing $(PLATFORM) binary using mib510" + $(PROGRAMMER) $(PROGRAMMER_FLAGS) --erase --upload if=$(INSTALL_SREC) + +program_bl: FORCE + @echo " installing $(PLATFORM) bootloader using mib510" + $(PROGRAMMER) $(PROGRAMMER_FLAGS) --upload if=$(BOOTLOADER) \ No newline at end of file