Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 361 | andfri | 1 | # System specific configuration file |
| 2 | |||
| 3 | # Define the command used to upload BIOS to the node |
||
| 4 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
||
| 5 | # $(MCU) is the AVR to use and the file to upload is $(PRG).hex |
||
| 6 | |||
| 7 | UPLOAD = avrdude |
||
| 8 | #avrispv2 avr910 |
||
| 9 | ULFLAGS = -p $(MCU) -P /dev/ttyS0 -c avr910 -b 115200 -U flash:w:$(PRG).hex |
||
| 10 | |||
| 11 | AVRDUDE_WRITE_FUSEBITS = -u |
||
| 12 | ifdef EXTFUSE |
||
| 13 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
||
| 14 | endif |
||
| 15 | ifdef HIGHFUSE |
||
| 16 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
||
| 17 | endif |
||
| 18 | ifdef LOWFUSE |
||
| 19 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
||
| 20 | endif |
||
| 21 | |||
| 22 | #comment this line for not programming fusebits |
||
| 23 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |