mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 03:42:51 +00:00
Per Curie documentation, the first sample from the Quark SE ADC hardware after reset needs to be dropped. This commits changes the location and the trigger event to do a dummy read that drops the first sample. Originally the driver did the dummy read on the API call enable() and it was triggered if the ADC had awakened from suspend mode. Because the SoC is not in suspend mode on power on and the API enable() call has no information on the channels to be read the dummy read could be missed. Now the dummy read is done on the API call to read() and triggered if it is the first time read() is called since power on. Change-Id: I1e1ad5f7f44d71ca88572ae242ad629471a9ab9b Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com> |
||
---|---|---|
.. | ||
adc_dw.c | ||
adc_dw.h | ||
adc_ti_adc108s102.c | ||
adc_ti_adc108s102.h | ||
Kconfig | ||
Makefile |