vendredi 20 février 2015

where is this STM32 structure defined


Vote count:

0




I'm trying to make get the printf output on a terminal. I'm using the STM32f10xx controller. I found a great description about that. here the problem that I have is that I can't find the gpioConfig structure , here a snap of the code :



#include "libstm32/stm32f10x_usart.h"
#include "libstm32/stm32f10x_gpio.h"
#include "libstm32/stm32f10x_rcc.h"



void InitializeUASRT(){
USART_InitTypeDef usartConfig;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);
RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART3,ENABLE);

usartConfig.USART_BaudRate = 9600;
usartConfig.USART_StopBits= USART_StopBits_1;
usartConfig.USART_WordLength =USART_WordLength_8b;
usartConfig.USART_Parity = USART_Parity_No;
usartConfig.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
usartConfig.USART_Mode = USART_Mode_Tx;

USART_Init(USART3,&usartConfig);
gpioConfig.GPIO_Mode // here is the problem

}


so my question is where can I find the definie ot gpioConfig. thanks for any hint



asked 1 min ago

Engine

1,180






where is this STM32 structure defined

Aucun commentaire:

Enregistrer un commentaire