/* Set CMP0 Plus and Minus Comparator Input Mux.  */
void CMPInputMuxSet(unsigned long ulBase, unsigned long ulPlus, unsigned long ulMinus)
/* Set CMP0 Plus and Minus Comparator Input Mux.  */
void CMPInputMuxSet(unsigned long ulBase, unsigned long ulPlus, unsigned long ulMinus)
{
    xASSERT(ulBase == ACMP_BASE);
    xASSERT((ulPlus >= 0) && (ulPlus < 8));
    xASSERT((ulMinus >= 0) && (ulMinus < 8));
    xHWREGB(ulBase + CMP0_MUXCR) &= ~CMP0_MUXCR_PSEL_M;
    xHWREGB(ulBase + CMP0_MUXCR) |= (ulPlus << CMP0_MUXCR_PSEL_S);
    xHWREGB(ulBase + CMP0_MUXCR) &= ~CMP0_MUXCR_MSEL_M;
    xHWREGB(ulBase + CMP0_MUXCR) |= (ulMinus << CMP0_MUXCR_MSEL_S);
}