zephyr/drivers/gpio
Tomasz Bursztyka fea1c49ba2 gpio: Improve the public API to handle multi callbacks
Many sub-systems might require to set a callback on different pins.
Thus enabling it via changing the API.

It is also possible to retrieve private-data in the callback handler
using CONTAINER_OF() macro (include/misc/util.h).

Former API is still available, and is emulated through the new one.
Using both should not be a problem as it's using new API calls.
However, it's now better to start using the new API.

Change-Id: Id16594202905976cc524775d1cd3592b54a84514
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-04-22 22:15:12 -04:00
..
Kconfig gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
Kconfig.atmel_sam3 gpio: restructure Kconfig options 2016-03-17 21:05:12 +00:00
Kconfig.dw gpio/dw: remove kconfigs that are SoC specific 2016-04-02 23:11:07 +00:00
Kconfig.k64 kinetis: reorganise soc directory using soc family 2016-04-18 21:24:58 +00:00
Kconfig.mmio gpio: restructure Kconfig options 2016-03-17 21:05:12 +00:00
Kconfig.pcal9535a gpio: restructure Kconfig options 2016-03-17 21:05:12 +00:00
Kconfig.qmsi qmsi: gpio: use built-in qmsi driver 2016-04-22 20:55:36 -04:00
Kconfig.sch gpio/sch: remove kconfigs that are SoC specific 2016-03-31 23:17:23 +00:00
Kconfig.stm32 stm32: rename CONFIG_SOC_STM32 -> CONFIG_SOC_FAMILY_STM32 2016-04-18 21:24:58 +00:00
Makefile gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_api_compat.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_api_compat.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_atmel_sam3.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_dw.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_dw.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_dw_registers.h gpio: dw: Refactor how general interrupt unmasking is proceeded 2016-02-05 20:25:21 -05:00
gpio_k64.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_k64.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_mmio.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_mmio.h drivers: gpio: Align the style all over the drivers 2016-03-24 08:01:52 +00:00
gpio_pcal9535a.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_pcal9535a.h drivers: Replace DEV_OK by 0 2016-03-16 19:30:04 -04:00
gpio_qmsi.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_sch.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_sch.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_stm32.c gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_stm32.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00
gpio_utils.h gpio: Improve the public API to handle multi callbacks 2016-04-22 22:15:12 -04:00