/* Converts a Mode Register bit mask to a stop bit configuration enum value. 
Converts a bit mask representing the UART's stop bit setting within the UART's Mode Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_stop_bits uart_xlnx_ps_ll2cfg_stopbits(uint32_t mode_reg)
/* Converts a Mode Register bit mask to a stop bit configuration enum value. 
Converts a bit mask representing the UART's stop bit setting within the UART's Mode Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_stop_bits uart_xlnx_ps_ll2cfg_stopbits(uint32_t mode_reg)
{
	switch ((mode_reg & XUARTPS_MR_STOPMODE_MASK)) {
	case XUARTPS_MR_STOPMODE_1_BIT:
	default:
		return UART_CFG_STOP_BITS_1;
	case XUARTPS_MR_STOPMODE_1_5_BIT:
		return UART_CFG_STOP_BITS_1_5;
	case XUARTPS_MR_STOPMODE_2_BIT:
		return UART_CFG_STOP_BITS_2;
	}
}