Lines Matching refs:USART_InitStructure
60 USART_InitTypeDef USART_InitStructure; in hk32_configure() local
69 USART_StructInit(&USART_InitStructure); in hk32_configure()
72 USART_InitStructure.USART_BaudRate = cfg->baud_rate; in hk32_configure()
73 USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; in hk32_configure()
74 USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; in hk32_configure()
79 USART_InitStructure.USART_WordLength = USART_WordLength_8b; in hk32_configure()
83 USART_InitStructure.USART_WordLength = USART_WordLength_9b; in hk32_configure()
86 USART_InitStructure.USART_WordLength = USART_WordLength_8b; in hk32_configure()
93 USART_InitStructure.USART_StopBits = USART_StopBits_1; in hk32_configure()
96 USART_InitStructure.USART_StopBits = USART_StopBits_2; in hk32_configure()
99 USART_InitStructure.USART_StopBits = USART_StopBits_1; in hk32_configure()
106 USART_InitStructure.USART_Parity = USART_Parity_No; in hk32_configure()
109 USART_InitStructure.USART_Parity = USART_Parity_Odd; in hk32_configure()
112 USART_InitStructure.USART_Parity = USART_Parity_Even; in hk32_configure()
115 USART_InitStructure.USART_Parity = USART_Parity_No; in hk32_configure()
118 USART_Init(usart_instance->usartx, &USART_InitStructure); in hk32_configure()