Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier Start-of-frame event experiments.

This commit is contained in:
Dean Camera 2009-06-08 07:34:16 +00:00
parent 33a0184749
commit ac70ddd0a1
39 changed files with 405 additions and 838 deletions

View file

@ -248,7 +248,7 @@ static void ReadWriteMemoryBlock(const uint8_t Command)
else
{
/* Read the next FLASH byte from the current FLASH page */
#if defined(RAMPZ)
#if (FLASHEND > 0xFFFF)
WriteNextResponseByte(pgm_read_byte_far(CurrAddress | HighByte));
#else
WriteNextResponseByte(pgm_read_byte(CurrAddress | HighByte));
@ -513,7 +513,7 @@ TASK(CDC_Task)
}
else if (Command == 'R')
{
#if defined(RAMPZ)
#if (FLASHEND > 0xFFFF)
uint16_t ProgramWord = pgm_read_word_far(CurrAddress);
#else
uint16_t ProgramWord = pgm_read_word(CurrAddress);