1
0
Fork 0

Allow for get_hardware_id() to be used for serial number. (#24053)

* Allow for `get_hardware_id()` to be used for serial number.

* Length checks.

* Explain length.

* Cleanup.

* Preprocessor magic.

* Use the force, Batman.

* Swap logic; if SERIAL_NUMBER is defined use that, otherwise derive it.

* Cleanup.

* Cleanup.
This commit is contained in:
Nick Brassel 2024-10-06 21:44:36 +13:00 committed by GitHub
parent 65b5dc7e0f
commit 305e7baa71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 13 deletions

View file

@ -5,3 +5,7 @@
#ifndef CORTEX_ENABLE_WFI_IDLE
# define CORTEX_ENABLE_WFI_IDLE TRUE
#endif // CORTEX_ENABLE_WFI_IDLE
#ifndef SERIAL_NUMBER_USE_HARDWARE_ID
# define SERIAL_NUMBER_USE_HARDWARE_ID TRUE
#endif // SERIAL_NUMBER_USE_HARDWARE_ID