You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2025/11/12 12:39:08 UTC

(nuttx) 01/02: include/nuttx/mtd/mtd.h: Add MTDIOC_RESET ioctl

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/nuttx.git

commit c793572c1cf83c9cb745c53d28e3897872a61e00
Author: Jani Paalijarvi <ja...@unikie.com>
AuthorDate: Mon Nov 10 10:45:57 2025 +0200

    include/nuttx/mtd/mtd.h: Add MTDIOC_RESET ioctl
    
    Define MTDIOC_RESET ioctl command for resetting flash memory.
    
    Signed-off-by: Jani Paalijarvi <ja...@unikie.com>
---
 include/nuttx/mtd/mtd.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/nuttx/mtd/mtd.h b/include/nuttx/mtd/mtd.h
index 73a3b529f1b..1a2d28c2459 100644
--- a/include/nuttx/mtd/mtd.h
+++ b/include/nuttx/mtd/mtd.h
@@ -77,6 +77,10 @@
                                              *      erased state of the MTD cell */
 #define MTDIOC_ERASESECTORS _MTDIOC(0x000c) /* IN: Pointer to mtd_erase_s structure
                                              * OUT: None */
+#define MTDIOC_RESET        _MTDIOC(0x000d) /* IN: None
+                                             * OUT: None
+                                             *      Resets the device to the power-on
+                                             *      default condition */
 
 /* Macros to hide implementation */