diff options
author | Joel Challis <git@zvecr.com> | 2022-10-06 00:36:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 00:36:48 +0100 |
commit | c59df9a54cb7ea680cbae9a57f3a665802c9c739 (patch) | |
tree | 11d3688f03a10deb85920318b4ac8b7f07128ea2 /platforms/chibios | |
parent | ab4cf9a7c128c9e871c440cc64536f578165b31f (diff) |
Fix some rp2040 hardware ID errors (#18617)
Diffstat (limited to 'platforms/chibios')
-rw-r--r-- | platforms/chibios/hardware_id.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platforms/chibios/hardware_id.c b/platforms/chibios/hardware_id.c index 7705bc7fd6..1097db5966 100644 --- a/platforms/chibios/hardware_id.c +++ b/platforms/chibios/hardware_id.c @@ -7,6 +7,9 @@ hardware_id_t get_hardware_id(void) { hardware_id_t id = {0}; #if defined(RP2040) + // Forward declare as including "hardware/flash.h" here causes more issues... + void flash_get_unique_id(uint8_t *); + flash_get_unique_id((uint8_t *)&id); #elif defined(UID_BASE) id.data[0] = (uint32_t)(*((uint32_t *)UID_BASE)); |