/* Disable callback. 
Disables the callback function registered by the usart_register_callback, and the callback will not be called from the interrupt routine. */
void uart_disable_callback(struct uart_module *const module, enum uart_callback callback_type)
/* Disable callback. 
Disables the callback function registered by the usart_register_callback, and the callback will not be called from the interrupt routine. */
void uart_disable_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;
	}
}