/* Get the channel list index of the last used channel.  */
u32 CMP_GetLastChan(void)
/* Get the channel list index of the last used channel.  */
u32 CMP_GetLastChan(void)
{
	CMP_TypeDef *comparator = COMPARATOR;
	return comparator->COMP_LAST_CH;
}