diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-12-31 12:19:08 -0500 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-12-31 12:19:08 -0500 |
commit | 28e9e122af24e63e84d5bcd2c619b76c490970fc (patch) | |
tree | 7174e8418fc8e6658bc7e2b260d0096d607803b3 /bootloaders/bt/ATmegaBOOT_168.c | |
parent | cbce8ed4bf330973a999220dd11444b6d1181d53 (diff) |
reset the Leonardo board when leaving the bootloader, before starting the sketch
Done so all IO and other registers are properly reinitialized when a new sketch is uploaded or when an existing sketch is started. Uses a watchdog timeout with a 15 ms period to accomplish the reset. Bootloader checks the reason for reset and only enumerates as bootloader and enters the programming loop if reset was NOT caused by WDT.
Diffstat (limited to 'bootloaders/bt/ATmegaBOOT_168.c')
0 files changed, 0 insertions, 0 deletions