Пример #1
0
static inline u32_t uart_stm32_get_stopbits(struct device *dev)
{
	USART_TypeDef *UartInstance = UART_STRUCT(dev);

#ifdef CONFIG_LPUART_1
	if (IS_LPUART_INSTANCE(UartInstance)) {
		return LL_LPUART_GetStopBitsLength(UartInstance);
	} else {
		return LL_USART_GetStopBitsLength(UartInstance);
	}
#else
	return LL_USART_GetStopBitsLength(UartInstance);
#endif	/* CONFIG_LPUART_1 */
}
Пример #2
0
static inline u32_t uart_stm32_get_stopbits(struct device *dev)
{
	USART_TypeDef *UartInstance = UART_STRUCT(dev);

	return LL_USART_GetStopBitsLength(UartInstance);
}