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
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 drivers: esp32: I2C driver implementation 2017-10-09 20:53:22 -04:00
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 drivers: i2c: sbcon: Only show SBCon when building for ARM 2017-09-17 09:28:30 -04:00
Kconfig.stm32 drivers/i2c: Cleanup Kconfig 2018-03-23 10:42:33 +08:00
i2c-priv.h
i2c_atmel_sam3.c drivers: i2c: deprecate usage of i2c_atmel_sam3 driver 2017-10-23 10:18:08 +02:00
i2c_bitbang.c i2c: fix include for i2c_bitbang in some drivers 2017-10-03 14:50:14 -04:00
i2c_bitbang.h doc: Fix misspellings in header/doxygen comments 2017-10-17 19:40:29 -04:00
i2c_cc32xx.c drivers: i2c: Add support for cc32xx I2C bus 2018-01-09 08:39:59 -06:00
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_dw_registers.h i2c/i2c_dw: correct the bitfield for ic_tar and ic_sar 2017-10-28 07:22:28 -04: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 drivers: i2c_gpio: Use quoted #include directive for i2c_bitbang 2017-11-22 18:49:17 -05:00
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.c i2c: stm32_ll: add support for STM32F0 with combined irq 2017-12-12 12:36:08 -06:00
i2c_ll_stm32.h i2c: stm32_ll: add support for STM32F0 with combined irq 2017-12-12 12:36:08 -06:00
i2c_ll_stm32_v1.c drivers: i2c: stm32f4: Fix incorrect buffer assignment 2018-01-13 11:36:15 -08:00
i2c_ll_stm32_v2.c i2c: stm32_ll: Fix spurious error while reading using IRQ 2018-01-11 19:00:19 -05:00
i2c_mcux.c drivers: i2c: remove usage of bitfield access for cfg 2017-09-20 10:16:14 -05:00
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.c drivers/i2c: Use standard bitrate settings for QMSI driver 2018-03-23 10:42:33 +08: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_sam_twi.c drivers: Add Atmel SAM family I2C (TWI) driver 2017-10-23 10:18:08 +02:00
i2c_sam_twihs.c drivers: i2c: Add DTS support for i2c_sam_twihs driver 2017-11-15 11:13:08 -06:00
i2c_sbcon.c i2c: fix include for i2c_bitbang in some drivers 2017-10-03 14:50:14 -04:00