Explorar o código

Add RT_MTD_ESRC definitions.

Add RT_MTD_ESRC definitions. If the source page has issue when copying a page, the low level can return this error code.
Bernard Xiong %!s(int64=12) %!d(string=hai) anos
pai
achega
9721603b72
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      components/drivers/include/drivers/mtd_nand.h

+ 6 - 5
components/drivers/include/drivers/mtd_nand.h

@@ -25,11 +25,12 @@
 struct rt_mtd_nand_driver_ops;
 #define RT_MTD_NAND_DEVICE(device)	((struct rt_mtd_nand_device*)(device))
 
-#define RT_MTD_EOK		0
-#define RT_MTD_EECC		1
-#define RT_MTD_EBUSY	2
-#define RT_MTD_EIO		3
-#define RT_MTD_ENOMEM	4
+#define RT_MTD_EOK		0	/* NO error */
+#define RT_MTD_EECC		1	/* ECC error */
+#define RT_MTD_EBUSY		2	/* hardware busy */
+#define RT_MTD_EIO		3	/* generic IO issue */
+#define RT_MTD_ENOMEM		4	/* out of memory */
+#define RT_MTD_ESRC		5	/* source issue */
 
 struct rt_mtd_nand_device
 {