Merge pull request #2857 from AlienWiiBF/UID_fix

STM32F722 UID fix
This commit is contained in:
MJ666 2017-04-11 00:08:34 +02:00 committed by GitHub
commit a3995910e6
1 changed files with 6 additions and 0 deletions

View File

@ -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