文档介绍:/* Configure I2C1 pins: SCL and SDA */ GPIO_InitStructure . GPIO_Pin = GPIO_Pin_6 | GPIO_Pin_7 ; GPIO_InitStructure . GPIO_Speed = GPIO_Speed_50MHz ; GPIO_InitStructure . GPIO_Mode = GPIO_Mode_Out_OD ; GPIO_Init ( GPIOB ,& GPIO_InitStructure ); ================================= /*********************************************************************** ******** * File Name : * Author : MCD Application Team * Version : * Date : 06/13/2008 * Description : Header for module ************************************************************************ *******/ /* Define to prevent recursive inclusion ------------------------------------ */ #ifndef __I2C_FRAM_H #define __I2C_FRAM_H /* Includes ------------------------------------------------------------------*/ #include "" /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ bool I2C_FRAM_BufferWrite ( u8 * pBuffer , u16 WriteAddr , u16 NumByteToWrite ); bool I2C_FRAM_BufferRead ( u8 * pBuffer , u16 ReadAddr , u16 NumByteToRead ); #endif /* __I2C_FRAM_H */ ================================= /*******************************************