AnsweredAssumed Answered

14: error: expected declaration specifiers or '...' before

Question asked by klen.klen on Nov 21, 2016
Latest reply on Nov 22, 2016 by klen.klen
i get 14: error: expected declaration specifiers or '...' before 'GPIO_Init'
and its my source code :

void Init_IO(GPIO_Init* GPIOx, uint32_t Pin, GPIOMode_TypeDef Mode, GPIOPuPd_TypeDef Pupd, GPIOSpeed_TypeDef Speed)
{
     GPIO_InitTypeDef IO_Init;
           if(GPIOx == GPIOA)     RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA,ENABLE);
     else if(GPIOx == GPIOB) RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOB,ENABLE);
     else if(GPIOx == GPIOC) RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOC,ENABLE);
.
.
.
.
.
.
}
somebody can help me?

Outcomes