bootloader: Use distinct USB PIDs depending on location in flash.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 7 Nov 2019 21:05:49 +0000 (22:05 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
commitba2d74b93676c335eb41cdb6d75978cf20a9340a
treec7b49a67e71af4d6eee3638dd64309fb9a8214e2
parent1013db0563617e7b7dee2948b6e4b1f733ddba1f
bootloader: Use distinct USB PIDs depending on location in flash.

The intermediate bootloader binary (located at 0x8000) now uses
USB PID 0x635b and the final bootloader binary (located at 0x0)
uses USB PID 0x635c.

This lets us find out what binary we're talking to depending on
how it registers on the USB.
src/bootloader/main.rs