static inline void uart_stm32_set_parity(struct device *dev, u32_t parity) { USART_TypeDef *UartInstance = UART_STRUCT(dev); #ifdef CONFIG_LPUART_1 if (IS_LPUART_INSTANCE(UartInstance)) { LL_LPUART_SetParity(UartInstance, parity); } else { LL_USART_SetParity(UartInstance, parity); } #else LL_USART_SetParity(UartInstance, parity); #endif /* CONFIG_LPUART_1 */ }
static inline void uart_stm32_set_parity(struct device *dev, u32_t parity) { USART_TypeDef *UartInstance = UART_STRUCT(dev); LL_USART_SetParity(UartInstance, parity); }