sustain-pedal-hid-sw/firmware/unique-id.c
2023-08-10 23:00:40 +02:00

12 lines
309 B
C

#include "unique-id.h"
#define UNIQUE_ID_BASE_ADDR 0x1FF80050UL
void unique_id_get(uint64_t *lot_wafer_number, uint32_t *unique_number)
{
if (lot_wafer_number)
*lot_wafer_number = *((uint64_t *)UNIQUE_ID_BASE_ADDR);
if (unique_number)
*unique_number = *((uint32_t *)(UNIQUE_ID_BASE_ADDR + 0x14UL));
}