Hi Mark Johnson,
Thank you for your feedback.
1. Chip_ADC_StartCalibration warining
void Chip_ADC_StartCalibration(LPC_ADC_T *pADC)
{
uint32_t save_ADC_CTRL;
save_ADC_CTRL = pADC->CTRL;
Chip_ADC_SetClockRate(LPC_ADC, ADC_CALIBRATE_RATE);
pADC->CTRL = (pADC->CTRL | ADC_CR_CALMODEBIT) & ~ADC_CR_LPWRMODEBIT;
}
Yes, the save_ADC_CTRL is really not used in the code, the following code use pADC->CTRL directly, but it doesn't matter, it won't influence the code function.
2. PIO0_12 mapped problem.
I have checked it on my side, you are right, it is really wrong, it should be IOCON_FUNC2 instead of IOCON_FUNC3.
I already report this problem to our according department, any reply will let you know.
Thanks for your report.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------