总线驱动-------IIC模拟时序驱动
对GPIO口的初始化void GPIO_IIC_Init(void){ GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd( RCC_APB2Periph_GPIOB, ENABLE ); GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP ; GPIO_InitStructure.
原创
2021-01-13 14:09:37 ·
169 阅读 ·
0 评论