1# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud> 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig I2C_SAM0 5 bool "SAM0 series I2C SERCOM driver" 6 default y 7 depends on DT_HAS_ATMEL_SAM0_I2C_ENABLED 8 select PINCTRL 9 help 10 Enable the SAM0 series SERCOM I2C driver. 11 12config I2C_SAM0_DMA_DRIVEN 13 bool "DMA support for SAM0 I2C devices" 14 depends on I2C_SAM0 15 select DMA 16 help 17 This enables DMA driven transactions for the I2C peripheral. 18 DMA driven mode requires fewer interrupts to handle the 19 transaction and ensures that high speed modes are not delayed 20 by data reloading. 21 22config I2C_SAM0_TRANSFER_TIMEOUT 23 int "Transfer timeout [ms]" 24 default 500 25 help 26 Timeout in milliseconds used for each I2C transfer. 27 0 means that the driver should use the K_FOREVER value, 28 i.e. it should wait as long as necessary. 29