/* DMAMUX Set DMA Request Synchronization Event Polarity. 
Set DMAMUX request synchronization input signal polarity (dmamux_cxcr_spol) for a given DMA channel. */
void dmamux_set_dma_request_sync_pol(uint32_t dmamux, uint8_t channel, uint8_t polarity)
/* DMAMUX Set DMA Request Synchronization Event Polarity. 
Set DMAMUX request synchronization input signal polarity (dmamux_cxcr_spol) for a given DMA channel. */
void dmamux_set_dma_request_sync_pol(uint32_t dmamux, uint8_t channel, uint8_t polarity)
{
	uint32_t reg32 = DMAMUX_CxCR(dmamux, channel);
	reg32 &= ~(DMAMUX_CxCR_SPOL_MASK << DMAMUX_CxCR_SPOL_SHIFT);
	reg32 |= ((polarity & DMAMUX_CxCR_SPOL_MASK) << DMAMUX_CxCR_SPOL_SHIFT);
	DMAMUX_CxCR(dmamux, channel) = reg32;
}