mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
If multiple AT24xx devices are supported and resources are allocated, then it may also be necessary to free those resource
This commit is contained in:
@@ -390,6 +390,19 @@ FAR struct mtd_dev_s *at24c_initialize(FAR struct i2c_dev_s *dev,
|
||||
FAR struct mtd_dev_s *at24c_initialize(FAR struct i2c_dev_s *dev);
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Name: at24c_uninitialize
|
||||
*
|
||||
* Description:
|
||||
* Release resources held by an allocated MTD device instance. Resources are only
|
||||
* allocated for the case where multiple AT24xx devices are support.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_AT24XX_MULTI
|
||||
void at24c_uninitialize(FAR struct mtd_dev_s *mtd);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: at25_initialize
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user