summaryrefslogtreecommitdiff
path: root/components/drivers/mtd
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-15 22:56:46 +0800
committerbernard <[email protected]>2017-10-15 22:56:46 +0800
commitd7087fdd3b998192afb03b34fd8034071d06bde7 (patch)
tree6a99d97408c4b3bc708b3a0601bff80907d8beac /components/drivers/mtd
parent0f5a68a55e2a3c44f1e85029d22de6180ad30390 (diff)
[DeviceDrivers] change cmd type.
1. Change 'rt_uint8_t' type of cmd to 'int'; 2. Add waitqueue; 3. Split device ipc header files;
Diffstat (limited to 'components/drivers/mtd')
-rw-r--r--components/drivers/mtd/mtd_nand.c2
-rw-r--r--components/drivers/mtd/mtd_nor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/mtd/mtd_nand.c b/components/drivers/mtd/mtd_nand.c
index 8511dca120..8cd0a03d5d 100644
--- a/components/drivers/mtd/mtd_nand.c
+++ b/components/drivers/mtd/mtd_nand.c
@@ -64,7 +64,7 @@ static rt_size_t _mtd_write(rt_device_t dev,
return size;
}
-static rt_err_t _mtd_control(rt_device_t dev, rt_uint8_t cmd, void *args)
+static rt_err_t _mtd_control(rt_device_t dev, int cmd, void *args)
{
return RT_EOK;
}
diff --git a/components/drivers/mtd/mtd_nor.c b/components/drivers/mtd/mtd_nor.c
index 3b4a0adf18..72bbc5a873 100644
--- a/components/drivers/mtd/mtd_nor.c
+++ b/components/drivers/mtd/mtd_nor.c
@@ -60,7 +60,7 @@ static rt_size_t _mtd_write(rt_device_t dev,
return size;
}
-static rt_err_t _mtd_control(rt_device_t dev, rt_uint8_t cmd, void *args)
+static rt_err_t _mtd_control(rt_device_t dev, int cmd, void *args)
{
return RT_EOK;
}