zephyr/drivers/gpio
Adithya Baglody b0db28b512 drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files.
Normally a syscall would check the current privilege level and then
decide to go to _impl_<syscall> directly or go through a
_handler_<syscall>.
__ZEPHYR_SUPERVISOR__ is a compiler optimization flag which will
make all the system calls from the driver files directly link
to the _impl_<syscall>. Thereby reducing the overhead of checking the
privileges.

In the previous implementation all the source files would be compiled
by zephyr_source() rule. This means that zephyr_* is a catchall CMake
library for source files that can be built purely with the include
paths, defines, and other compiler flags that all zephyr source
files uses. This states that adding one extra compiler flag for only
one complete directory would fail.
This limitation can be overcome by using zephyr_libray* APIs. This
creates a library for the required directories and it also supports
directory level properties.
Hence we use zephyr_library* to create a new library with
macro _ZEPHYR_SUPERVISOR_ for the optimization.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-05-15 17:48:18 +03:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig gpio: Add a driver for SX1509B 2018-03-13 12:31:16 -05:00
Kconfig.altera_nios2
Kconfig.atmel_sam3
Kconfig.cc32xx
Kconfig.cc2650
Kconfig.cmsdk_ahb
Kconfig.dw dts: optimize and bug fixes the dts of em_starterkit 2018-05-15 09:48:11 +02:00
Kconfig.esp32
Kconfig.fe310
Kconfig.gecko
Kconfig.imx gpio: Add imx gpio driver shim 2018-05-02 12:48:14 -05:00
Kconfig.mcux gpio: dts: Introduce Kconfig symbols to convey GPIO dts support 2018-05-10 15:43:42 -05:00
Kconfig.mcux_igpio
Kconfig.mcux_lpc
Kconfig.mmio32
Kconfig.nrf5 gpio: nrf5: Make the init priority configurable 2018-04-09 17:09:06 -05:00
Kconfig.pcal9535a
Kconfig.pulpino
Kconfig.qmsi
Kconfig.sam drivers: GPIO Added GPIO for SAM family. 2018-03-10 11:42:25 -06:00
Kconfig.sam0
Kconfig.sch
Kconfig.stm32 gpio: dts: Introduce Kconfig symbols to convey GPIO dts support 2018-05-10 15:43:42 -05:00
Kconfig.sx1509b gpio: Add a driver for SX1509B 2018-03-13 12:31:16 -05:00
gpio_altera_nios2.c
gpio_atmel_sam3.c
gpio_cc32xx.c
gpio_cc2650.c
gpio_cmsdk_ahb.c
gpio_cmsdk_ahb.h
gpio_dw.c
gpio_dw.h
gpio_dw_registers.h
gpio_esp32.c
gpio_fe310.c
gpio_gecko.c
gpio_handlers.c drivers: Perform a runtime check if a driver is capable of an operation 2018-04-26 02:57:12 +05:30
gpio_imx.c gpio: Add imx gpio driver shim 2018-05-02 12:48:14 -05:00
gpio_mcux.c gpio: Refactor the mcux gpio driver to use dts 2018-04-20 08:54:11 -05:00
gpio_mcux_igpio.c ext: mcux: Reorganize imported drivers into soc family subfolders 2018-04-24 07:55:48 -05:00
gpio_mcux_lpc.c ext: mcux: Reorganize imported drivers into soc family subfolders 2018-04-24 07:55:48 -05:00
gpio_mmio32.c
gpio_nrf5.c gpio: nrf5: Make the init priority configurable 2018-04-09 17:09:06 -05:00
gpio_pcal9535a.c
gpio_pcal9535a.h
gpio_pulpino.c
gpio_qmsi.c
gpio_qmsi_ss.c
gpio_sam.c drivers: GPIO Added GPIO for SAM family. 2018-03-10 11:42:25 -06:00
gpio_sam0.c
gpio_sch.c
gpio_sch.h
gpio_stm32.c
gpio_stm32.h
gpio_sx1509b.c gpio: Add a driver for SX1509B 2018-03-13 12:31:16 -05:00
gpio_utils.h