Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Paulau <7134956@gmail.com>2018-02-23 14:40:01 +0300
committerDmitry Filimonchuk <dmitrystu@gmail.com>2018-02-23 14:40:01 +0300
commit77cd7bdd1673bbcddec30fb11438e0c6e7bb565b (patch)
treef6a5ac0754742d3517249cd0461993bb3b5fdc98 /src
parent87fc76daf5cf06f11c9deb28b53efebff0c607f9 (diff)
Fixed support STM32F0xx (#17)
Diffstat (limited to 'src')
-rw-r--r--src/memmap.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/memmap.inc b/src/memmap.inc
index 3f51af4..cdf59f7 100644
--- a/src/memmap.inc
+++ b/src/memmap.inc
@@ -34,9 +34,17 @@
#define USB_BCDR 0x18
#define USB_PMABASE 0x40006000
#define RCC_BASE 0x40021000
- #define RCC_APB1RSTR 0x28
- #define RCC_APB1ENR 0x38
- #define UID_BASE 0x1FF80050
+ #if defined(STM32F042x6) || defined(STM32F048xx) || \
+ defined(STM32F070x6) || defined(STM32F070xB) || \
+ defined(STM32F072xB) || defined(STM32F078xx)
+ #define RCC_APB1RSTR 0x10
+ #define RCC_APB1ENR 0x1C
+ #define UID_BASE 0x1FFFF7AC
+ #else
+ #define RCC_APB1RSTR 0x28
+ #define RCC_APB1ENR 0x38
+ #define UID_BASE 0x1FF80050
+ #endif
#elif defined(STM32L1)
/* common definitions for STM31L100xx STM32L151xx STM32L152xx STM32L162xx */