AnsweredAssumed Answered

two weired error in a c programin keil

Question asked by mahmoud on Sep 24, 2014
Latest reply on Sep 26, 2014 by fm
hi every body
i declared a void function
[CODE]
void SPI_MFRC522_Init(void)
{
..............
}
[/CODE]
& used it in a main program


[CODE]
void RC522_IO_Init(void)
{




     GPIO_InitTypeDef GPIO_InitStruct;
     RCC_APB2PeriphClockCmd(RC522_RESET_GPIO_CLK,ENABLE);
     GPIO_InitStruct.GPIO_Pin = RC522_RESET_PIN;
     GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;
     GPIO_Init(RC522_RESET_GPIO_PORT, &GPIO_InitStruct);
[B][COLOR="#FF0000"]     SPI_MFRC522_Init(void);[/COLOR][/B]
}
[/CODE]
and keil shows me this 2 error:
#29:expected an expression 
#140:too many arguments in function call
122.jpg

Outcomes