This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0342272 up_progmem_erasesize for stm32f20xxf40xx_flash.c
0342272 is described below
commit 0342272e5a6a399c7a0a2ffb7da05c4234e401cf
Author: zouboan <[email protected]>
AuthorDate: Fri Jan 21 13:39:36 2022 +0800
up_progmem_erasesize for stm32f20xxf40xx_flash.c
---
arch/arm/src/stm32/stm32f20xxf40xx_flash.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/src/stm32/stm32f20xxf40xx_flash.c
b/arch/arm/src/stm32/stm32f20xxf40xx_flash.c
index 44352e3..e947685 100644
--- a/arch/arm/src/stm32/stm32f20xxf40xx_flash.c
+++ b/arch/arm/src/stm32/stm32f20xxf40xx_flash.c
@@ -249,6 +249,11 @@ size_t up_progmem_pagesize(size_t page)
}
}
+size_t up_progmem_erasesize(size_t block)
+{
+ return up_progmem_pagesize(block);
+}
+
ssize_t up_progmem_getpage(size_t addr)
{
size_t page_end = 0;