Makefiles and library modified to add a new F_CLOCK constant to give the unprescaled master input clock frequency, so that the correct PLL mask can be determined even when the CPU (F_CPU) clock rate is prescaled outside the normal input range of the PLL.

Started to clean up the AVRISP Programmer project code, donated by Opendous Inc.
This commit is contained in:
Dean Camera 2009-02-26 05:48:47 +00:00
parent fa456ce531
commit 99145a8d7c
40 changed files with 632 additions and 250 deletions

View file

@ -207,7 +207,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
*
* \param Command Single character AVR910 protocol command indicating what memory operation to perform
*/
static void ProgramReadWriteMemoryBlock(const uint8_t Command)
static void ReadWriteMemoryBlock(const uint8_t Command)
{
uint16_t BlockSize;
char MemoryType;
@ -503,7 +503,7 @@ TASK(CDC_Task)
else if ((Command == 'B') || (Command == 'g'))
{
/* Delegate the block write/read to a seperate function for clarity */
ProgramReadWriteMemoryBlock(Command);
ReadWriteMemoryBlock(Command);
}
else if (Command == 'R')
{