Ejemplo n.º 1
0
/* De-initializes the ACMP */
void Chip_ACMP_Deinit(LPC_CMP_T *pACMP)
{
	IP_ACMP_Deinit(pACMP);

	/* Disable the clock to the register interface */
	Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_ACOMP);

	/* Enable the power to the analog comparator */
	Chip_SYSCTL_PowerDown(SYSCTL_SLPWAKE_ACMP_PD);
}
Ejemplo n.º 2
0
/* De-initializes the ACMP */
void Chip_ACMP_Deinit(LPC_CMP_T *pACMP)
{
	IP_ACMP_Deinit(pACMP);

	/* Disable ACMP clock */
	Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_ACOMP);

	/* Enable the power to the analog comparator */
	Chip_SYSCTL_PowerDown(SYSCTL_POWERDOWN_ACOMP_PD);
}