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/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5be2c5d91c mmc: add timeout fields for mmc_ioc_cmd
5be2c5d91c is described below
commit 5be2c5d91c3d6c4151a5d061c4b31aa3ee21953b
Author: wanggang26 <[email protected]>
AuthorDate: Mon Aug 21 09:50:40 2023 +0800
mmc: add timeout fields for mmc_ioc_cmd
Signed-off-by: wanggang26 <[email protected]>
---
include/nuttx/mmcsd.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/nuttx/mmcsd.h b/include/nuttx/mmcsd.h
index 9669f3d95d..04aedeab3a 100644
--- a/include/nuttx/mmcsd.h
+++ b/include/nuttx/mmcsd.h
@@ -73,6 +73,11 @@ struct mmc_ioc_cmd
unsigned int blksz;
unsigned int blocks;
+ /* Override driver-computed timeouts. Note the difference in units! */
+
+ unsigned int data_timeout_ns;
+ unsigned int cmd_timeout_ms;
+
/* For 64-bit machines, the next member, ``uint64_t data_ptr``, wants to
* be 8-byte aligned. Make sure this struct is the same size when
* built for 32-bit.