stm32: use cpuid_address' address, not the value

We're interested in the address of `cpuid_address`, not the value it is pointing, too.
pr/gpio
Oleg Hahm 8 years ago
parent c6eb21806b
commit 97adfa781e

@ -26,9 +26,9 @@
#include "periph/cpuid.h"
extern uint32_t *_cpuid_address;
extern uint32_t _cpuid_address;
void cpuid_get(void *id)
{
memcpy(id, _cpuid_address, CPUID_LEN);
memcpy(id, &_cpuid_address, CPUID_LEN);
}

Loading…
Cancel
Save