Revision 649
The bay board library now compiles, usb communication has been verified. Next commit I will add the source, makefile, and hex for the bootloader. The main.c in charging_bay/main.c now has something I'm working on to be able to switch to bootloader by pushing the button
reset.c | ||
---|---|---|
49 | 49 |
* and Status Register (MCUCSR). |
50 | 50 |
**/ |
51 | 51 |
void reset(void) { |
52 |
WDTCR &= 0xF8; |
|
53 |
WDTCR |= 0x08; |
|
54 |
_delay_ms(15); |
|
52 |
//enable countdown with about a 2 second delay |
|
53 |
WDTCSR = _BV(WDE) | (3<<WDP0); |
|
55 | 54 |
} |
56 | 55 |
|
57 | 56 |
/**@}**/ //end defgroup |
Also available in: Unified diff