Update USB Serial Number from SPI flash's uniqueID

Also allow flash to be separately enabled via PLATFORM_EXTRAS.

NOTE: this does *NOT* enable the serial number
in the bootrom.  Still investigating options there.
This commit is contained in:
Henry Gabryjelski 2023-02-17 15:42:46 -08:00
commit 5784c8de77
6 changed files with 71 additions and 5 deletions

View file

@ -31,6 +31,7 @@ bool usb_poll_validate_length(void);
uint32_t usb_read(uint8_t *data, size_t len);
int usb_write(const uint8_t *data, const size_t len);
uint32_t usb_read_ng(uint8_t *data, size_t len);
void usb_update_serial(uint64_t newSerialNumber);
void SetUSBreconnect(int value);
int GetUSBreconnect(void);