mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
30 lines
589 B
C
30 lines
589 B
C
|
|
#pragma once
|
|
|
|
#ifdef STM32F303xC
|
|
#include "stm32f30x_conf.h"
|
|
#include "stm32f30x_rcc.h"
|
|
#include "stm32f30x_gpio.h"
|
|
#include "core_cm4.h"
|
|
|
|
// Chip Unique ID on F303
|
|
#define U_ID_0 (*(uint32_t*)0x1FFFF7AC)
|
|
#define U_ID_1 (*(uint32_t*)0x1FFFF7B0)
|
|
#define U_ID_2 (*(uint32_t*)0x1FFFF7B4)
|
|
|
|
#endif
|
|
|
|
#ifdef STM32F10X_MD
|
|
|
|
#include "stm32f10x_conf.h"
|
|
#include "core_cm3.h"
|
|
|
|
// Chip Unique ID on F103
|
|
#define U_ID_0 (*(uint32_t*)0x1FFFF7E8)
|
|
#define U_ID_1 (*(uint32_t*)0x1FFFF7EC)
|
|
#define U_ID_2 (*(uint32_t*)0x1FFFF7F0)
|
|
|
|
#endif // STM32F10X_MD
|
|
|
|
#include "target.h"
|
|
|