Revision 194
Added default fuses to the bootloader
trunk/bootloader/bootloader.h | ||
---|---|---|
4 | 4 |
#include <avr/io.h> |
5 | 5 |
#include <avr/boot.h> |
6 | 6 |
#include <avr/wdt.h> |
7 |
#include <avr/fuse.h> |
|
7 | 8 |
#include <tooltron.h> |
8 | 9 |
#include "rs485_poll.h" |
9 | 10 |
#include "packet.h" |
trunk/bootloader/bootloader.c | ||
---|---|---|
1 | 1 |
#include "bootloader.h" |
2 | 2 |
|
3 |
// Setup the default fuses |
|
4 |
FUSES = { |
|
5 |
.low = (FUSE_SUT0 & FUSE_CKSEL3 & FUSE_CKSEL2 & FUSE_CKSEL0), |
|
6 |
.high = (FUSE_EESAVE & FUSE_SPIEN), |
|
7 |
.extended = (FUSE_SELFPRGEN), |
|
8 |
}; |
|
3 | 9 |
|
10 |
|
|
11 |
|
|
4 | 12 |
// Error thresholds |
5 | 13 |
#define MAX_RETRIES 5 // Number of times to retry before giving up |
6 | 14 |
|
Also available in: Unified diff