/* Initializes the ACMP */ void Chip_ACMP_Init(LPC_CMP_T *pACMP) { /* Enable the power to the analog comparator */ Chip_SYSCTL_PowerUp(SYSCTL_SLPWAKE_ACMP_PD); /* Enable the clock to the register interface */ Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_ACOMP); IP_ACMP_Init(pACMP); }
/* Initializes the ACMP */ void Chip_ACMP_Init(LPC_CMP_T *pACMP) { /* Enable the power to the analog comparator */ Chip_SYSCTL_PowerUp(SYSCTL_POWERDOWN_ACOMP_PD); /* Enable ACMP clock */ Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_ACOMP); IP_ACMP_Init(pACMP); }