/* Sets which channels should be used in ACMP comparisons.  */
void ACMP_ChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef negSel, ACMP_Channel_TypeDef posSel)
/* Sets which channels should be used in ACMP comparisons.  */
void ACMP_ChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef negSel, ACMP_Channel_TypeDef posSel)
{
  EFM_ASSERT(posSel < _ACMP_INPUTSEL_NEGSEL_1V25);
  EFM_ASSERT(negSel <= _ACMP_INPUTSEL_NEGSEL_VDD);
  acmp->INPUTSEL = (acmp->INPUTSEL & ~(_ACMP_INPUTSEL_POSSEL_MASK |
                                       _ACMP_INPUTSEL_NEGSEL_MASK))
                   | (negSel << _ACMP_INPUTSEL_NEGSEL_SHIFT)
                   | (posSel << _ACMP_INPUTSEL_POSSEL_SHIFT);
}