zephyr/drivers/i2c
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
i2c_atmel_sam3.c
i2c_bitbang.c
i2c_bitbang.h
i2c_cc32xx.c
i2c_dw_registers.h
i2c_dw.c drivers/i2c: Use standard bitrate settings for DW driver 2018-03-23 10:42:33 +08:00
i2c_dw.h drivers/i2c: Use standard bitrate settings for DW driver 2018-03-23 10:42:33 +08:00
i2c_esp32.c drivers: i2c: esp32: Fix to_read value on i2c_esp32_read_msg() 2018-02-07 14:52:52 -05:00
i2c_gpio.c
i2c_handlers.c drivers: Perform a runtime check if a driver is capable of an operation 2018-04-26 02:57:12 +05:30
i2c_ll_stm32_v1.c
i2c_ll_stm32_v2.c
i2c_ll_stm32.c
i2c_ll_stm32.h
i2c_mcux.c
i2c_nios2.c drivers: i2c: i2c_nios2: Fix format specifiers in log messages 2018-02-09 10:11:52 -05:00
i2c_nrf5.c soc: nrf5: Use i2c configure options generated from dts 2018-03-13 14:14:13 +01:00
i2c_qmsi_ss.c drivers/i2c: Make QMSI SS driver IRQs set via CONFIG_ options 2018-03-23 10:42:33 +08:00
i2c_qmsi.c drivers/i2c: Use standard bitrate settings for QMSI driver 2018-03-23 10:42:33 +08:00
i2c_sam_twi.c
i2c_sam_twihs.c
i2c_sbcon.c
i2c-priv.h
Kconfig drivers/i2c: Cleanup Kconfig 2018-03-23 10:42:33 +08:00
Kconfig.dw drivers/i2c: Cleanup Kconfig 2018-03-23 10:42:33 +08:00
Kconfig.esp32
Kconfig.gpio
Kconfig.nrf5 arch: arm: nrf: Rename nrf5 SoC Family to nrf 2018-03-20 11:57:14 +01:00
Kconfig.qmsi drivers/i2c: Use standard bitrate settings for QMSI SS driver 2018-03-23 10:42:33 +08:00
Kconfig.sbcon
Kconfig.stm32 drivers/i2c: Cleanup Kconfig 2018-03-23 10:42:33 +08:00