zephyr/drivers/adc
Juan Manuel Cruz ff8138595e adc: adjustments to dummy read
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>
2016-02-08 22:19:51 -05:00
..
adc_dw.c adc: adjustments to dummy read 2016-02-08 22:19:51 -05:00
adc_dw.h adc: adjustments to dummy read 2016-02-08 22:19:51 -05:00
adc_ti_adc108s102.c device: use DEVICE_INIT everwhere 2016-02-05 20:25:25 -05:00
adc_ti_adc108s102.h
Kconfig adc: updates sample width kconfig help message 2016-02-05 20:25:23 -05:00
Makefile