Skip to content
Snippets Groups Projects
Commit 88bcc6fd authored by Dean Camera's avatar Dean Camera
Browse files

Speed up Mass Storage bootloader by turning off the internal clock divider, as...

Speed up Mass Storage bootloader by turning off the internal clock divider, as there is enough FLASH space to do so.
parent 17032838
Branches
Tags
No related merge requests found
......@@ -104,6 +104,9 @@ static void SetupHardware(void)
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
/* Relocate the interrupt vector table to the bootloader section */
MCUCR = (1 << IVCE);
MCUCR = (1 << IVSEL);
......
......@@ -39,6 +39,7 @@
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <string.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment