Remove debug code from the incomplete Mass Storage class bootloader, rename main source files.
This commit is contained in:
parent
0f0f9638a3
commit
d5d9ff73e5
5 changed files with 4 additions and 14 deletions
|
@ -101,7 +101,6 @@ static void WriteBlock(const uint16_t BlockNumber)
|
|||
Endpoint_Read_Stream_LE(BlockBuffer, sizeof(BlockBuffer), NULL);
|
||||
Endpoint_ClearOUT();
|
||||
|
||||
printf("WRITE %d\r\n", BlockNumber);
|
||||
// TODO: Write to FLASH
|
||||
}
|
||||
|
||||
|
@ -139,15 +138,9 @@ static void ReadBlock(const uint16_t BlockNumber)
|
|||
default:
|
||||
if ((BlockNumber >= 4) && (BlockNumber < (4 + (FIRMWARE_FILE_SIZE / SECTOR_SIZE_BYTES))))
|
||||
{
|
||||
// printf("<D>\r\n");
|
||||
|
||||
for (uint16_t i = 0; i < 512; i++)
|
||||
BlockBuffer[i] = 'A' + (i % 26);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("INVALID %d\r\n", BlockNumber);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue