According to init_lwadc.c, the lwadc init structure has a Normal power setting.
However, in lwadc_kadc.c, the code has the following line
adc_ptr->CFG1 |= ADC_CFG1_ADLPC_MASK;
This causes the ADC to use the Low power configuration.
Is there someplace that states what all the ADC settings should be, for the LWADC driver?
Hi Mark:
There are two types of adc driver in MQX package, one is legacy adc driver, the other is lwadc driver.
From MQX 4.1, we removed all the adc demos that based on the legacy adc driver because the legacy adc driver has some limitations.
You can get the info from the release note of MQX 4.1.0
Driver Updates
-- The LWADC driver has been ported to all supported board support packages. The support of the legacy ADC driver was discontinued.
Regards
Daniel