MCUSR &= ~(1 << WDRF);\r
wdt_disable();\r
\r
- /* Disable Clock Division */\r
- SetSystemClockPrescaler(0);\r
+ /* Disable clock division */\r
+ clock_prescale_set(clock_div_1);\r
\r
/* Relocate the interrupt vector table to the bootloader section */\r
MCUCR = (1 << IVCE);\r
\r
Endpoint_ClearSetupIN();\r
\r
+ /* Acknowledge status stage */\r
while (!(Endpoint_IsSetupOUTReceived()));\r
Endpoint_ClearSetupOUT();\r
}\r
\r
Endpoint_ClearSetupOUT();\r
\r
+ /* Acknowledge status stage */\r
while (!(Endpoint_IsSetupINReady()));\r
Endpoint_ClearSetupIN();\r
}\r
{\r
Endpoint_ClearSetupReceived();\r
\r
+ /* Acknowledge status stage */\r
while (!(Endpoint_IsSetupINReady()));\r
Endpoint_ClearSetupIN();\r
}\r
*\r
* \param Command Single character AVR910 protocol command indicating what memory operation to perform\r
*/\r
-static void ProgramReadWriteMemoryBlock(const uint8_t Command)\r
+static void ReadWriteMemoryBlock(const uint8_t Command)\r
{\r
uint16_t BlockSize;\r
char MemoryType;\r
else if ((Command == 'B') || (Command == 'g'))\r
{\r
/* Delegate the block write/read to a seperate function for clarity */\r
- ProgramReadWriteMemoryBlock(Command);\r
+ ReadWriteMemoryBlock(Command);\r
}\r
else if (Command == 'R')\r
{\r