Skip to content

Commit

Permalink
Add another note on another optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcaneNibble committed Apr 23, 2024
1 parent dd03d6c commit 3c22553
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ extern uint32_t USB_SECTOR_STASH[128];

// Files larger than this won't cause an auto-reboot
// (there is not enough USBD RAM to mark which blocks have been received)
// The last bit (MSB) of the last halfword is used to mark
// "has received the first valid UF2 block which contains a valid block count"
#define AUTO_BOOT_BITMAP_NUM_HWORDS 36
#define MAX_AUTO_BOOT_BLOCKS (AUTO_BOOT_BITMAP_NUM_HWORDS * 16 - 1)
extern uint32_t UF2_GOT_BLOCKS[AUTO_BOOT_BITMAP_NUM_HWORDS];
Expand Down

0 comments on commit 3c22553

Please sign in to comment.