dizgah
Member level 5
- Joined
- Nov 8, 2009
- Messages
- 91
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- iran-8par
- Activity points
- 2,049
hi every body
i declared a void function
& used it in a main program
and keil shows me this 2 error:
#29:expected an expression
#140:too many arguments in function call
i declared a void function
Code:
void SPI_MFRC522_Init(void)
{
..............
}
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]
}
#29:expected an expression
#140:too many arguments in function call