12 lines
309 B
C
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));
|
||
|
}
|