Use the RTIO work queue to fake the i2c submit calls for drivers which haven't yet implemented the API. Applications can change the size of the work queue pool depending on how much traffic they have on the buses. Signed-off-by: Yuval Peress <peress@google.com>
25 lines
447 B
Plaintext
25 lines
447 B
Plaintext
# Copyright (c) 2024 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Features being tested
|
|
CONFIG_LOG=y
|
|
CONFIG_RTIO=y
|
|
CONFIG_I2C=y
|
|
CONFIG_I2C_RTIO=y
|
|
|
|
# Testing
|
|
CONFIG_ZTEST=y
|
|
CONFIG_EMUL=y
|
|
|
|
# The number of pending requests allowed
|
|
CONFIG_RTIO_WORKQ_POOL_ITEMS=2
|
|
|
|
# Used for debugging
|
|
CONFIG_I2C_LOG_LEVEL_DBG=y
|
|
CONFIG_I2C_DUMP_MESSAGES=y
|
|
|
|
# Language features for capturing lambdas
|
|
CONFIG_CPP=y
|
|
CONFIG_STD_CPP17=y
|
|
CONFIG_REQUIRES_FULL_LIBCPP=y
|