2019-03-06 18:03:48 -07:00
|
|
|
# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig I2C_SAM0
|
|
|
|
bool "SAM0 series I2C SERCOM driver"
|
2022-07-20 15:44:42 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ATMEL_SAM0_I2C_ENABLED
|
2024-10-31 19:08:31 +01:00
|
|
|
select PINCTRL
|
2019-03-06 18:03:48 -07:00
|
|
|
help
|
|
|
|
Enable the SAM0 series SERCOM I2C driver.
|
|
|
|
|
|
|
|
config I2C_SAM0_DMA_DRIVEN
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "DMA support for SAM0 I2C devices"
|
2019-03-06 18:03:48 -07:00
|
|
|
depends on I2C_SAM0
|
|
|
|
select DMA
|
|
|
|
help
|
|
|
|
This enables DMA driven transactions for the I2C peripheral.
|
|
|
|
DMA driven mode requires fewer interrupts to handle the
|
|
|
|
transaction and ensures that high speed modes are not delayed
|
|
|
|
by data reloading.
|
2024-10-02 12:32:17 +02:00
|
|
|
|
|
|
|
config I2C_SAM0_TRANSFER_TIMEOUT
|
|
|
|
int "Transfer timeout [ms]"
|
2025-02-17 21:00:45 -05:00
|
|
|
depends on I2C_SAM0
|
2024-10-02 12:32:17 +02:00
|
|
|
default 500
|
|
|
|
help
|
|
|
|
Timeout in milliseconds used for each I2C transfer.
|
|
|
|
0 means that the driver should use the K_FOREVER value,
|
|
|
|
i.e. it should wait as long as necessary.
|