mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-01 04:20:33 +00:00
Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier Start-of-frame event experiments.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user