driver/i2c: add notes to i2c deleteing function v4.3

This commit is contained in:
laokaiyao
2021-05-07 18:08:54 +08:00
committed by bot
parent b6826d8878
commit 5f184c6556
2 changed files with 4 additions and 0 deletions

View File

@@ -358,6 +358,7 @@ Delete Driver
When the I2C communication is established with the function :cpp:func:`i2c_driver_install` and is not required for some substantial amount of time, the driver may be deinitialized to release allocated resources by calling :cpp:func:`i2c_driver_delete`.
Before calling :cpp:func:`i2c_driver_delete` to remove i2c driver, please make sure that all threads have stopped using the driver in any way, because this function does not guarantee thread safety.
Application Example
-------------------