zephyr/drivers
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
..
adc drivers: adc: Introduce reworked API 2018-08-29 13:46:57 -04:00
aio Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
audio drivers: audio: add audio to cmake system 2018-08-19 11:04:32 -07:00
bluetooth Bluetooth: Userchan: Add missing headers 2018-08-02 19:14:19 +02:00
can drivers: can: Fix Issue #8226 2018-08-15 08:23:02 -05:00
clock_control Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
console irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
counter Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
crypto Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
display dts: nrf5: Changed GPIO and GPIOTE define names 2018-08-17 07:29:14 -07:00
dma drivers: dma_cavs: Remove resource owner config 2018-08-19 11:06:09 -07:00
entropy Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
ethernet drivers: ethernet: Kconfig: Document availability of eth_stm32_hal 2018-08-15 08:17:48 -05:00
flash irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
gpio drivers: gpio: Fix two bugs in nrfx gpio 2018-08-27 10:30:04 -04:00
grove Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
i2c drivers: i2c_ll_stm32_v1: Handle NACK during address tranmsission 2018-08-27 12:52:53 -04:00
i2s drivers: i2s_cavs: Remove resource owner config 2018-08-19 11:06:09 -07:00
ieee802154 Kconfig: Use the first default with a satisfied condition 2018-08-10 12:38:28 -07:00
interrupt_controller irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
ipm irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
led drivers: led: Add LED driver support for TI LP5562 2018-08-16 06:28:53 -07:00
led_strip boards: nrf: Changed GPIO default driver to NRFX shim 2018-08-17 07:29:14 -07:00
modem dts: nrf5: Changed GPIO and GPIOTE define names 2018-08-17 07:29:14 -07:00
net Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
pci Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
pinmux drivers: pinmux: stm32: complete stm32l4x header 2018-08-20 05:51:52 -07:00
ptp_clock drivers: ptp_clock: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
pwm drivers: pwm_nrf5_sw: Perform static initialization only once 2018-08-20 22:08:44 +02:00
rtc drivers: rtc: add support for STM32 RTC 2018-08-16 13:38:43 -07:00
sensor sensors: introduce kconfig named choices 2018-08-29 09:05:51 -04:00
serial irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
spi drivers: nrfx: Allow simultaneous use of SPI_0 and I2C_0 on nRF52810 2018-08-13 18:45:04 -07:00
timer kernel: event_logger: remove kernel_event_logger 2018-08-21 05:45:47 -07:00
usb drivers: usb: add support for USB OTG FS on STM32F2 2018-08-16 06:19:19 -07:00
watchdog tests/samples: watchdog: Update projects' configuration 2018-08-20 06:38:02 -07:00
wifi drivers: wifi: simplelink: enable Fast Connect policy 2018-07-26 13:57:34 +03:00
CMakeLists.txt drivers: audio: add audio to cmake system 2018-08-19 11:04:32 -07:00
Kconfig drivers: audio: Add audio support in Kconfig 2018-08-19 11:04:32 -07:00