| 
 
| 在使用意法半导体的EK-STM32F103时,将I2C1的Tx(PB06)和Rx(PB07)重映射到PB08和PB09管脚上,同时使用TIM4的CH1(PB06)和CH2(PB07),此时I2C1的功能不管用了,TIM4的CH3(PB08)和CH4(PB09)没有使用。 
 // Enable the I2C1 Pins Software Remapping
 GPIO_PinRemapConfig(GPIO_Remap_I2C1, ENABLE);
 
 /* Configure I2C1 pins: SCL and SDA */
 GPIO_InitStructure.GPIO_Pin =  GPIO_Pin_8 | GPIO_Pin_9;
 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD;
 GPIO_Init(GPIOB, &GPIO_InitStructure);
 
 求教高手,在使用重映射时需要注意的问题,不胜感激@@!!
 | 
 |