Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
19. September 2011 | ||
------------------ | ||
|
||
* New Makefile, build should be more flexible now | ||
* New flash.sh script, takes care of flashing outside of Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* port to ATmega1280 and ATmega2650 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
ISPTOOL="avrispmkII" | ||
ISPPORT="usb" | ||
ISPSPEED="-b 115200" | ||
|
||
|
||
BOARD=`basename $1 | cut -d - -f 2` | ||
MCU_TARGET=`basename $1 | cut -d - -f 3` | ||
|
||
case "${MCU_TARGET}" in | ||
|
||
|
||
"atmega168" ) | ||
EFUSE=00 | ||
HFUSE=DD | ||
LFUSE=FF | ||
;; | ||
"atmega328p") | ||
EFUSE=05 | ||
HFUSE=D2 | ||
LFUSE=FF | ||
;; | ||
"atmega1280") | ||
EFUSE=F5 | ||
HFUSE=DA | ||
LFUSE=FF | ||
;; | ||
esac | ||
|
||
|
||
avrdude -c ${ISPTOOL} -p ${MCU_TARGET} -P ${ISPPORT} ${ISPSPEED} -e -u -U lock:w:0x3f:m -U efuse:w:0x${EFUSE}:m -U hfuse:w:0x${HFUSE}:m -U lfuse:w:0x${LFUSE}:m | ||
sleep 3 | ||
avrdude -c ${ISPTOOL} -p ${MCU_TARGET} -P ${ISPPORT} ${ISPSPEED} -U flash:w:$1 -U lock:w:0x0f:m |