You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/04/29 06:30:20 UTC
[incubator-nuttx] 06/10: stm32l4 FLASH_CR_FSTPG register fix
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 57c64d327efb02b674b2b805af69e84b64be169c
Author: Sergey Nikitenko <s....@me.com>
AuthorDate: Sun Mar 7 22:17:00 2021 +0300
stm32l4 FLASH_CR_FSTPG register fix
---
arch/arm/src/stm32l4/hardware/stm32l4_flash.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32l4/hardware/stm32l4_flash.h b/arch/arm/src/stm32l4/hardware/stm32l4_flash.h
index 22973a5003..5baceb5117 100644
--- a/arch/arm/src/stm32l4/hardware/stm32l4_flash.h
+++ b/arch/arm/src/stm32l4/hardware/stm32l4_flash.h
@@ -243,7 +243,7 @@
#endif
#define FLASH_CR_START (1 << 16) /* Bit 16: Start Erase */
#define FLASH_CR_OPTSTRT (1 << 17) /* Bit 17: Options modification Start */
-#define FLASH_CR_FSTPG (1 << 23) /* Bit 23: Fast programming */
+#define FLASH_CR_FSTPG (1 << 18) /* Bit 18: Fast programming */
#define FLASH_CR_EOPIE (1 << 24) /* Bit 24: End of operation interrupt enable */
#define FLASH_CR_ERRIE (1 << 25) /* Bit 25: Error interrupt enable */
#define FLASH_CR_RDERRIE (1 << 26) /* Bit 26: PCROP read error interrupt enable */