zephyr/drivers/adc
Andrzej Głąbek f1891e9473 drivers: adc: Introduce reworked API
This commit replaces the API for ADC drivers with a reworked one.
As requested in the issue #3980, the adc_enable/adc_disable functions
are removed. Additionaly, some new features are introduced, like:
- asynchronous calls
- configuration of channels
- multi-channel sampling

Common parts of code that are supposed to appear in each implementation
of the driver (like locking, synchronization, triggering of consecutive
samplings) are provided in the "adc_context.h" file to keep consistency
with the SPI driver. Syscalls are no longer present in the API because
the functions starting read requests cannot use them, since they can be
provided with a callback that is executed in the ISR context, and there
is no point in supporting syscalls only for the channels configuration.

"adc_api" test is updated and extended with additional test cases,
with intention to show how the API is supposed to be used.
"adc_simple" test is removed as it does not seem to add much value.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-08-29 13:46:57 -04:00
..
CMakeLists.txt drivers: adc: Introduce reworked API 2018-08-29 13:46:57 -04:00
Kconfig drivers: adc: Introduce reworked API 2018-08-29 13:46:57 -04:00
Kconfig.dw drivers: adc: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.mcux drivers: adc: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.qmsi drivers: adc: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.sam_afec drivers: adc: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.ti_adc108s102 drivers: adc: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
adc_context.h drivers: adc: Introduce reworked API 2018-08-29 13:46:57 -04:00
adc_dw.c
adc_dw.h
adc_mcux_adc16.c adc: Introduce new mcux adc16 driver 2017-07-19 14:28:08 -05:00
adc_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_qmsi_ss.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_sam_afec.c drivers: adc: Add SAM ADC driver 2017-10-10 11:56:47 -05:00
adc_ti_adc108s102.c drivers/adc: Uneven buffers will lead to buffer overflow 2018-05-17 10:30:29 +03:00
adc_ti_adc108s102.h drivers/adc: Switch ti_adc108s102 driver to new SPI API 2018-04-04 19:02:35 +02:00