8a4013b2e1
In npcx adc driver, we select 'Scan' (Multiple Channels Operation Mode) mode by default. It means that selected channels in ADCCS will be converted automatically. Then, read the measured data from CHNDAT registers if EOCCEV (Event is set after all selected channels are converted.) flag in ADCSTS is set. But we enable the wrong interrupt type, INTECEN, during adc initialization. Ec will send the interrupt after each channel in ADCCS is converted. It has no harm to the current driver since the driver reads all selected channels and turns off ADC converter only after EOCCEV is set in ISR. But it does generate spurious interrupts. This CL enables the correct interrupt type, INTECCEN, during adc initialization. Ec only sends the interrupt after all of channels in ADCCS are converted. Signed-off-by: Mulin Chao <mlchao@nuvoton.com> |
||
---|---|---|
.. | ||
common | ||
npcx7 | ||
npcx9 | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.defconfig | ||
Kconfig.soc |