Hi,
This is the function to deinitialize the i2c. When you do not need the i2c function, you can call it.
The other usage is this: when the mcu has few pins, you may use different peripheral function at the same pin. For example, the pin has i2c and spi function. You can configure the pin as i2c at firstly , and then deinitialize the i2c. Configure the pin as spi. Finally, you can deinitialize the spi and configure the pin as i2c. This is called Time division multiplexing.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------