mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
STM32F722 UID fix
This commit is contained in:
parent
4e2c1fccf0
commit
4e38437d11
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue