Revision 287 trunk/bootloader/bootloader.c
| bootloader.c (revision 287) | ||
|---|---|---|
| 63 | 63 |
boot = FALSE; |
| 64 | 64 |
|
| 65 | 65 |
// Grab the address from EEPROM |
| 66 |
addr = eeprom_read_byte((void*)EEPROM_ADDR); |
|
| 66 |
addr = read_addr(); |
|
| 67 | 67 |
|
| 68 | 68 |
// Initialize the Pins |
| 69 | 69 |
DDRB = LED_GREEN | LED_YELLOW | LED_RED; // Set the LED pins as outputs |
| ... | ... | |
| 79 | 79 |
boot = TRUE; |
| 80 | 80 |
} |
| 81 | 81 |
|
| 82 |
// External override at bootup to enter bootloading mode |
|
| 82 | 83 |
if (!(BUT_PORT & (BUT_RED | BUT_BLACK))) {
|
| 83 | 84 |
boot = TRUE; |
| 84 | 85 |
} |
Also available in: Unified diff