Rev 368 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 368 | Rev 416 | ||
|---|---|---|---|
| 1 | # System specific configuration file |
1 | # System specific configuration file |
| - | 2 | # Rename this file to system.inc and then modify the params below, |
|
| - | 3 | # make sure the last row is uncommented first time you program a node with bios |
|
| - | 4 | ||
| 2 | 5 | ||
| 3 | # Define the command used to upload BIOS to the node |
6 | # Define the command used to upload BIOS to the node |
| 4 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
7 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
| 5 | # $(MCU) is the AVR to use and the file to upload is $(PRG).hex |
8 | # $(MCU) is the AVR to use and the file to upload is $(PRG).hex |
| 6 | 9 | ||
| 7 | UPLOAD = avrdude |
10 | UPLOAD = avrdude |
| 8 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(PRG).hex |
11 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(PRG).hex |
| 9 | 12 | ||
| 10 | AVRDUDE_WRITE_FUSEBITS = -u |
13 | AVRDUDE_WRITE_FUSEBITS = -u |
| 11 | ifdef EXTFUSE |
14 | ifdef EXTFUSE |
| 12 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
15 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
| 13 | endif |
16 | endif |
| 14 | ifdef HIGHFUSE |
17 | ifdef HIGHFUSE |
| 15 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
18 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
| 16 | endif |
19 | endif |
| 17 | ifdef LOWFUSE |
20 | ifdef LOWFUSE |
| 18 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
21 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
| 19 | endif |
22 | endif |
| 20 | 23 | ||
| 21 | #comment this line for not programming fusebits |
24 | #comment this line for not programming fusebits |
| 22 |
|
25 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |