ciu32f003_std_i2c.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /************************************************************************************************/
  2. /**
  3. * @file ciu32f003_std_i2c.c
  4. * @author MCU Ecosystem Development Team
  5. * @brief I2C STD库驱动。
  6. * 实现I2C初始化等API。
  7. *
  8. *
  9. **************************************************************************************************
  10. * @attention
  11. * Copyright (c) CEC Huada Electronic Design Co.,Ltd. All rights reserved.
  12. *
  13. **************************************************************************************************
  14. */
  15. /************************************************************************************************/
  16. /**
  17. * @addtogroup CIU32F003_STD_Driver
  18. * @{
  19. */
  20. /**
  21. * @addtogroup I2C
  22. * @{
  23. *
  24. */
  25. /************************************************************************************************/
  26. /*------------------------------------------includes--------------------------------------------*/
  27. #include "ciu32f003_std.h"
  28. #ifdef STD_I2C_PERIPHERAL_USED
  29. /*-------------------------------------------functions------------------------------------------*/
  30. /************************************************************************************************/
  31. /**
  32. * @addtogroup I2C_External_Functions
  33. * @{
  34. *
  35. */
  36. /************************************************************************************************/
  37. /**
  38. * @brief I2C去初始化函数
  39. * @retval 无
  40. */
  41. void std_i2c_deinit(void)
  42. {
  43. /* I2C复位I2C的时钟 */
  44. std_rcc_apb1_reset(RCC_PERIPH_RESET_I2C1);
  45. }
  46. /**
  47. * @}
  48. */
  49. #endif /* STD_I2C_PERIPHERAL_USED */
  50. /**
  51. * @}
  52. */
  53. /**
  54. * @}
  55. */