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 69597ec486 arch/sim: Add i2s setup and shutdown interface
69597ec486 is described below
commit 69597ec4869d389aa2cc702e5e587f28ec29fa05
Author: zhangshoukui <[email protected]>
AuthorDate: Wed Apr 9 16:59:04 2025 +0800
arch/sim: Add i2s setup and shutdown interface
This interface is required if you want to open an i2c node directly on the
sim
https://github.com/apache/nuttx/pull/12848/commits/12b4340b009d55f30508b1ebb1da1c4faec674a7
Signed-off-by: zhangshoukui <[email protected]>
---
arch/sim/src/sim/posix/sim_i2c.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sim/src/sim/posix/sim_i2c.h b/arch/sim/src/sim/posix/sim_i2c.h
index 4eb16a1fdf..931e336cf9 100644
--- a/arch/sim/src/sim/posix/sim_i2c.h
+++ b/arch/sim/src/sim/posix/sim_i2c.h
@@ -73,6 +73,8 @@ struct i2c_ops_s
#ifdef CONFIG_I2C_RESET
int (*reset)(struct i2c_master_s *dev);
#endif
+ int (*setup)(struct i2c_master_s *dev);
+ int (*shutdown)(struct i2c_master_s *dev);
};
/****************************************************************************