/* Enables callback. 
Enables the callback function registered by the usart_register_callback. The callback function will be called from the interrupt handler when the conditions for the callback type are met. */
void uart_enable_callback(struct uart_module *const module, enum uart_callback callback_type)
/* Enables callback. 
Enables the callback function registered by the usart_register_callback. The callback function will be called from the interrupt handler when the conditions for the callback type are met. */
void uart_enable_callback(struct uart_module *const module, enum uart_callback callback_type)
{
	Assert(module);
	module->callback_enable_mask |= (1 << callback_type);
	if (callback_type == UART_CTS_ACTIVE) {
		module->hw->TX_INTERRUPT_MASK.reg |= UART_TX_INTERRUPT_MASK_CTS_ACTIVE_MASK;
	}
}