Browse Source

cpu/sam0: cpuid: Refactor for clarity

pr/rotary
Joakim Nohlgård 6 years ago
parent
commit
9adeaf0942
  1. 2
      cpu/sam0_common/periph/cpuid.c

2
cpu/sam0_common/periph/cpuid.c

@ -33,5 +33,5 @@
void cpuid_get(void *id)
{
uint32_t addr[] = { WORD0, WORD1, WORD2, WORD3 };
memcpy(id, (void *)addr, CPUID_LEN);
memcpy(id, &addr[0], CPUID_LEN);
}

Loading…
Cancel
Save