From 30cb497fe125de6ae2e52a72758180437ec65974 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 13 Jul 2021 19:33:12 -0300 Subject: [PATCH] mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value Signed-off-by: Gustavo Henrique Nihei --- include/nuttx/mtd/mtd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/nuttx/mtd/mtd.h b/include/nuttx/mtd/mtd.h index 10e5567a40..fa29318c83 100644 --- a/include/nuttx/mtd/mtd.h +++ b/include/nuttx/mtd/mtd.h @@ -71,6 +71,9 @@ #define MTDIOC_FLUSH _MTDIOC(0x0009) /* IN: None * OUT: None (ioctl return value provides * success/failure indication). */ +#define MTDIOC_ERASESTATE _MTDIOC(0x000a) /* IN: Pointer to uint8_t + * OUT: Byte value that represents the + * erased state of the MTD cell */ /* Macros to hide implementation */