2016-11-20 11:53 PM
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? #stm322016-11-21 06:17 AM
Hello,
Probably you should check and rearrange the contents of the header files and your declarations.You can take, as start point, a working example within your available library to have more idea about implementation, initialization code and related functions. Then make required updates according to your needs.Regards2016-11-21 06:35 PM
thank's
and now that's problem solvedbut i have one questionhow to save the answer of serial communicate ?from RX