/* Aborts all ongoing jobs. 
Aborts all ongoing jobs. */
void m2m_abort_job(struct m2m_module *const m2m, enum m2m_job_type type)
/* Aborts all ongoing jobs. 
Aborts all ongoing jobs. */
void m2m_abort_job(struct m2m_module *const m2m, enum m2m_job_type type)
{
	Assert(m2m);
	Assert(m2m->hw);
	UNUSED(type);
	m2m->hw->MEM2MEM_PTCR = (MEM2MEM_PTCR_RXTDIS | MEM2MEM_PTCR_TXTDIS);
	m2m->hw->MEM2MEM_IDR = 0xFFFFFFFF;
	m2m->job_status = ERR_ABORTED;
}