登录
首页 » iic,c,unix,eclipse » stm32f4 的iic移值

stm32f4 的iic移值

于 2023-02-24 发布 文件大小:1.26 kB
0 62
下载积分: 2 下载次数: 2

代码说明:

//³õʼ»¯IICvoid IIC_Init(void){  GPIO_InitTypeDef  GPIO_InitStructure;  RCC_AHB1PeriphClockCmd(MU_IIC_SCL_CLOCK, ENABLE);//ʹÄÜGPIOFʱÖÓ  RCC_AHB1PeriphClockCmd(MU_IIC_SDA_CLOCK, ENABLE);//ʹÄÜGPIOFʱÖÓ  //GPIOF6,F8³õʼ»¯ÉèÖà GPIO_InitStructure.GPIO_Pin   = MU_IIC_SCL_PIN;  GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//50MHz  GPIO_InitStructure.GPIO_PuPd  = GPIO_PuPd_UP;//ÉÏÀ­  GPIO_Init(MU_IIC_SCL_GPIOX, &GPIO_InitStructure);//³õʼ»¯  GPIO_InitStructure.GPIO_Pin   = MU_IIC_SDA_PIN;  GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//50MHz&nb

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • stm32f4 的iic移值
    //³õʼ»¯IICvoid IIC_Init(void){  GPIO_InitTypeDef  GPIO_InitStructure;  RCC_AHB1PeriphClockCmd(MU_IIC_SCL_CLOCK, ENABLE);//ʹÄÜGPIOFʱÖÓ  RCC_AHB1PeriphClockCmd(MU_IIC_SDA_CLOCK, ENABLE);//ʹÄÜGPIOFʱÖÓ  //GPIOF6,F8³õʼ»¯ÉèÖà GPIO_InitStructure.GPIO_Pin   = MU_IIC_SCL_PIN;  GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//50MHz  GPIO_InitStructure.GPIO_PuPd  = GPIO_PuPd_UP;//ÉÏÀ­  GPIO_Init(MU_IIC_SCL_GPIOX, &GPIO_InitStructure);//³õʼ»¯  GPIO_InitStructure.GPIO_Pin   = MU_IIC_SDA_PIN;  GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//50MHz&nb
    2023-02-24 13:45:04下载
    积分:1
  • 696524资源总数
  • 103833会员总数
  • 52今日下载