I don't know from where you are copying your codes.
Open the file called stm32f4xx_gpio.h to find out what are the correct labels.
Here is the corrected code:
Open the file called stm32f4xx_gpio.h to find out what are the correct labels.
Here is the corrected code:
C:
/* Infinite loop */
while (1)
{
if (GPIO_ReadInputDataBit(GPIOD, GPIO_Pin_0))
{
GPIO_WriteBit(GPIOD, GPIO_Pin_12, Bit_RESET);
}
else
{
GPIO_WriteBit(GPIOD, GPIO_Pin_12, Bit_SET);
}
}