make bootloader jumper bridge optional

This commit is contained in:
optixx 2009-09-17 19:29:40 +02:00
parent 99cee555c1
commit 935c1d6f7f
3 changed files with 20 additions and 71 deletions

View File

@ -83,7 +83,7 @@
#define AVR_BTLDR_EN_PIN PC1 #define AVR_BTLDR_EN_PIN PC1
#define AVR_BTLDR_EN_IN PINC #define AVR_BTLDR_EN_IN PINC
#undef AVR_BTLDR_SWITCH
/* /*
* some predefined signatures, taken from the original USBasp sourcecode * some predefined signatures, taken from the original USBasp sourcecode
*/ */
@ -471,7 +471,7 @@ int __attribute__ ((noreturn, OS_main)) main(void)
jump_to_app(); jump_to_app();
} }
#ifdef AVR_BTLDR_SWITCH ENABLE
if ((AVR_BTLDR_EN_IN & ( 1 << AVR_BTLDR_EN_PIN)) == 0){ if ((AVR_BTLDR_EN_IN & ( 1 << AVR_BTLDR_EN_PIN)) == 0){
banner(); banner();
uart_puts("Bootloader flashing is disabled\n\r"); uart_puts("Bootloader flashing is disabled\n\r");
@ -479,6 +479,7 @@ int __attribute__ ((noreturn, OS_main)) main(void)
leave_bootloader(); leave_bootloader();
} }
#endif
/* /*
* if power-on reset, quit bootloader via watchdog reset * if power-on reset, quit bootloader via watchdog reset

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>currentDocument</key> <key>currentDocument</key>
<string>avr/usbload/irq.c</string> <string>avr/usbload/sram.h</string>
<key>documents</key> <key>documents</key>
<array> <array>
<dict> <dict>
@ -393,7 +393,7 @@
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>11</integer> <integer>21</integer>
</dict> </dict>
<key>avr/usbload/irq.h</key> <key>avr/usbload/irq.h</key>
<dict> <dict>
@ -521,21 +521,21 @@
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>0</integer> <integer>141</integer>
</dict> </dict>
<key>avr/usbload/sram.h</key> <key>avr/usbload/sram.h</key>
<dict> <dict>
<key>caret</key> <key>caret</key>
<dict> <dict>
<key>column</key> <key>column</key>
<integer>0</integer> <integer>66</integer>
<key>line</key> <key>line</key>
<integer>183</integer> <integer>154</integer>
</dict> </dict>
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>118</integer> <integer>132</integer>
</dict> </dict>
<key>avr/usbload/testing.c</key> <key>avr/usbload/testing.c</key>
<dict> <dict>
@ -825,62 +825,6 @@
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>211</integer> <integer>211</integer>
</dict> </dict>
<key>tools/ucon64/2.0/src/backup/f2a.c</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>0</integer>
<key>line</key>
<integer>0</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>558</integer>
</dict>
<key>tools/ucon64/2.0/src/backup/fal.c</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>0</integer>
<key>line</key>
<integer>0</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>0</integer>
</dict>
<key>tools/ucon64/2.0/src/backup/snesram.h</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>38</integer>
<key>line</key>
<integer>70</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>30</integer>
</dict>
<key>tools/ucon64/2.0/src/console/snes.c</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>28</integer>
<key>line</key>
<integer>1135</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>1952</integer>
</dict>
</dict> </dict>
<key>openDocuments</key> <key>openDocuments</key>
<array> <array>
@ -915,11 +859,9 @@
<string>avr/usbload/debug.h</string> <string>avr/usbload/debug.h</string>
<string>avr/usbload/rle.h</string> <string>avr/usbload/rle.h</string>
<string>avr/usbload/config.h</string> <string>avr/usbload/config.h</string>
<string>tools/ucon64/2.0/src/console/snes.c</string>
<string>poc/avr_sdcard/main.c</string> <string>poc/avr_sdcard/main.c</string>
<string>poc/avr_usbload/sram.c</string> <string>poc/avr_usbload/sram.c</string>
<string>avr/usbload/sram.h</string> <string>avr/usbload/sram.h</string>
<string>tools/ucon64/2.0/src/backup/snesram.h</string>
<string>avr/usbload/shared_memory.h</string> <string>avr/usbload/shared_memory.h</string>
<string>avr/usbload/checksize</string> <string>avr/usbload/checksize</string>
<string>avr/usbload/shared_memory.c</string> <string>avr/usbload/shared_memory.c</string>
@ -928,8 +870,6 @@
<string>avr/usbload/fifo.h</string> <string>avr/usbload/fifo.h</string>
<string>avr/usbload/main.c</string> <string>avr/usbload/main.c</string>
<string>avr/usbload/sram.c</string> <string>avr/usbload/sram.c</string>
<string>tools/ucon64/2.0/src/backup/fal.c</string>
<string>tools/ucon64/2.0/src/backup/f2a.c</string>
<string>avr/usbload/usbconfig.h</string> <string>avr/usbload/usbconfig.h</string>
<string>avr/usbload/crc.h</string> <string>avr/usbload/crc.h</string>
</array> </array>
@ -971,6 +911,6 @@
</dict> </dict>
</dict> </dict>
<key>windowFrame</key> <key>windowFrame</key>
<string>{{0, 60}, {936, 818}}</string> <string>{{0, 72}, {936, 806}}</string>
</dict> </dict>
</plist> </plist>

View File

@ -1,2 +1,10 @@
Send PCB to seeed
Checkout nootloader lock fuses RS232 cable add programm header and sio lines
SDcard header
Rework No. 002
Assemble No. 006 & No. 007
Mail snega2usb about OEM
Package for Quickdev16
Bootloader lockbits
Flash all cartridge with latest firmware and bootloader
Email to seeed about the retour package