コード例 #1
0
ファイル: acmp_8xx.c プロジェクト: nopodige/bike_tire_video
/* 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);
}
コード例 #2
0
/* 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);
}