From 6030e15561e7f103c2f1c69f7cb4acde6309425b Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 23 Sep 2025 05:54:41 +0200 Subject: [PATCH] Fixed misaligned documentation: return value of ext_flash_read is `len` in case of success, not 0. ZD #20548 --- docs/HAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/HAL.md b/docs/HAL.md index 3aee817be6..cecb092100 100644 --- a/docs/HAL.md +++ b/docs/HAL.md @@ -100,8 +100,8 @@ This function provides an indirect read of the external memory, using the driver's specific interface. `address` is the offset from the beginning of the addressable space in the device, `data` is a pointer where payload is stored upon a successful call, and `len` is the maximum size allowed for the payload. This function must be able to handle -reads of any size and alignment. `ext_flash_read` should return 0 upon success, or a negative value -in case of failure. +reads of any size and alignment. `ext_flash_read` should return the number of bytes read +on success, or a negative value in case of failure. `int ext_flash_erase(uintptr_t address, int len)`