commit
a3995910e6
|
@ -22,9 +22,15 @@
|
||||||
#include "stm32f7xx_hal.h"
|
#include "stm32f7xx_hal.h"
|
||||||
|
|
||||||
// Chip Unique ID on F7
|
// Chip Unique ID on F7
|
||||||
|
#if defined(STM32F722xx)
|
||||||
|
#define U_ID_0 (*(uint32_t*)0x1ff07a10)
|
||||||
|
#define U_ID_1 (*(uint32_t*)0x1ff07a14)
|
||||||
|
#define U_ID_2 (*(uint32_t*)0x1ff07a18)
|
||||||
|
#else
|
||||||
#define U_ID_0 (*(uint32_t*)0x1ff0f420)
|
#define U_ID_0 (*(uint32_t*)0x1ff0f420)
|
||||||
#define U_ID_1 (*(uint32_t*)0x1ff0f424)
|
#define U_ID_1 (*(uint32_t*)0x1ff0f424)
|
||||||
#define U_ID_2 (*(uint32_t*)0x1ff0f428)
|
#define U_ID_2 (*(uint32_t*)0x1ff0f428)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define STM32F7
|
#define STM32F7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue