diff options
author | vin <git@vineetk.net> | 2023-10-09 10:43:46 -0400 |
---|---|---|
committer | vin <git@vineetk.net> | 2023-10-09 12:54:54 -0400 |
commit | 797953ea2c49e3f16ca560729f6bdbb15a59d580 (patch) | |
tree | 50d66a320a8886d07cd9de0ec03cf05c6685064f /platforms/chibios/hardware_id.c | |
parent | 52db763c718733eada69e81b587377e3a720d390 (diff) |
remove unused libraries
Diffstat (limited to 'platforms/chibios/hardware_id.c')
-rw-r--r-- | platforms/chibios/hardware_id.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/platforms/chibios/hardware_id.c b/platforms/chibios/hardware_id.c deleted file mode 100644 index 1097db5966..0000000000 --- a/platforms/chibios/hardware_id.c +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2022 QMK -// SPDX-License-Identifier: GPL-2.0-or-later - -#include <ch.h> -#include "hardware_id.h" - -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)); - id.data[1] = (uint32_t)(*((uint32_t *)(UID_BASE + 4))); - id.data[2] = (uint32_t)(*((uint32_t *)(UID_BASE + 8))); -#endif - return id; -} |