/* Select the ACMP- input source of the comparator.  */
void ACMPNegativeSrcSet(unsigned long ulBase, unsigned long ulComp, unsigned long ulSource)
/* Select the ACMP- input source of the comparator.  */
void ACMPNegativeSrcSet(unsigned long ulBase, unsigned long ulComp, unsigned long ulSource)
{
    unsigned long ulCRAddr;
    xASSERT(ulBase == ACMP_BASE);
    xASSERT((ulComp >= 0) && (ulComp < 2));
    ulCRAddr = ulBase + ACMP_CR0 + (4 * ulComp);
    xHWREG(ulCRAddr) &= ~ACMP_CR_CN;
    xHWREG(ulCRAddr) |= (ulSource << 4);
}