From 9721603b72121566b6c0b42c5f39ce9c2599121f Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 17 Jan 2013 10:06:01 +0800 Subject: [PATCH] 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. --- components/drivers/include/drivers/mtd_nand.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h index 45c3016e5..fdcece3a5 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 { -- GitLab