mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
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 <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
59da455fea
commit
69597ec486
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue