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

@ -342,7 +342,7 @@ void EVENT_USB_UnhandledControlPacket(void)
}
/* Read the flash word and send it via USB to the host */
#if defined(RAMPZ)
#if (FLASHEND > 0xFFFF)
Endpoint_Write_Word_LE(pgm_read_word_far(CurrFlashAddress.Long));
#else
Endpoint_Write_Word_LE(pgm_read_word(CurrFlashAddress.Long));
@ -585,7 +585,7 @@ static void ProcessMemReadCommand(void)
while (CurrFlashAddress < BOOT_START_ADDR)
{
/* Check if the current byte is not blank */
#if defined(RAMPZ)
#if (FLASHEND > 0xFFFF)
if (pgm_read_byte_far(CurrFlashAddress) != 0xFF)
#else
if (pgm_read_byte(CurrFlashAddress) != 0xFF)