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
commit 30cb497fe125de6ae2e52a72758180437ec65974 Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com> AuthorDate: Tue Jul 13 19:33:12 2021 -0300 mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value Signed-off-by: Gustavo Henrique Nihei <gustavo.ni...@espressif.com> --- 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 10e5567..fa29318 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 */