projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0302404
)
fix: FLASH_F4_CR_LOCK
author
texane
<texane@gmail.com>
Thu, 17 Mar 2016 18:27:14 +0000
(19:27 +0100)
committer
texane
<texane@gmail.com>
Thu, 17 Mar 2016 18:27:14 +0000
(19:27 +0100)
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index 47148614b67dab3c13a7e09b38ec97728c0c30d7..4ad86f8efde8aa068be453b3ab59a32aa68a5b85 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-251,7
+251,7
@@
static void lock_flash(stlink_t *sl) {
if (sl->flash_type == FLASH_TYPE_F4) {
cr_reg = FLASH_F4_CR;
- cr_lock_shift =
STM32L4_FLASH
_CR_LOCK;
+ cr_lock_shift =
FLASH_F4
_CR_LOCK;
} else if (sl->flash_type == FLASH_TYPE_L4) {
cr_reg = STM32L4_FLASH_CR;
cr_lock_shift = STM32L4_FLASH_CR_LOCK;