summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-01-17 10:06:01 +0800
committerBernard Xiong <[email protected]>2013-01-17 10:06:01 +0800
commit9721603b72121566b6c0b42c5f39ce9c2599121f (patch)
tree079b85c85c724426ff9d685f2f7a33706e675548 /components
parent7a8dfb6dd5f972c43c435dd221fc3d8f053f5f96 (diff)
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.
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/mtd_nand.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h
index 45c3016e5c..fdcece3a57 100644
--- a/components/drivers/include/drivers/mtd_nand.h
+++ b/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
{