Init code for external JP2 for I2C1, this error was encountered
void I2C1_Configuration(void)
{
I2C_InitTypeDef I2C_InitStructure;
/* I2C1 ENABLE */
I2C_Cmd(I2C1, ENABLE);
/* Enable I2C1 event interrupt */
I2C_ITConfig(I2C2, I2C_IT_EVT | I2C_IT_BUF , ENABLE);
/* I2C1 Init */
I2C_InitStructure.I2C_Mode = I2C_Mode_I2C;
I2C_InitStructure.I2C_DutyCycle = I2C_DutyCycle_2;
I2C_InitStructure.I2C_OwnAddress1 = 0x30;
I2C_InitStructure.I2C_Ack = I2C_Ack_Enable;
I2C_InitStructure.I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit;
// I2C_InitStructure.I2C_ClockSpeed =ClockSpeed ;
I2C_Init(I2C2, &I2C_InitStructure);
}
'I2C1' undeclared (first use in this function)
I2C_Cmd(I2C1, ENABLE); => I2C1 is not undeclared.
could you help me this err?