You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/06/22 13:07:39 UTC

[GitHub] [mynewt-core] t3zeng commented on a diff in pull request #2851: Ambiq Apollo3: Utilize ram buffer to handle flash to flash memory writes

t3zeng commented on code in PR #2851:
URL: https://github.com/apache/mynewt-core/pull/2851#discussion_r903720138


##########
hw/mcu/ambiq/apollo3/src/hal_flash.c:
##########
@@ -168,6 +168,32 @@ apollo3_flash_write(const struct hal_flash *dev, uint32_t address,
     return rc;
 }
 
+static int
+apollo3_flash_write(const struct hal_flash *dev, uint32_t address,
+    const void *src, uint32_t num_bytes)
+{
+    int rc = 0;
+    uint32_t offset = 0;
+    uint32_t chunk_len;
+    uint8_t ram_buf[MYNEWT_VAL(FLASH_INTERMEDIARY_BUF_SIZE)];

Review Comment:
   Added the definition to the mcu syscfg



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org