Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/i2c/target/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# zephyr-keep-sorted-start
zephyr_library_sources_ifdef(CONFIG_I2C_EEPROM_TARGET eeprom_target.c)
# zephyr-keep-sorted-stop
zephyr_library_sources_ifdef(CONFIG_I2C_HID_TARGET i2c_hid_target.c)
1 change: 1 addition & 0 deletions drivers/i2c/target/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ config I2C_TARGET_BUFFER_MODE
# zephyr-keep-sorted-start
source "drivers/i2c/target/Kconfig.eeprom"
# zephyr-keep-sorted-stop
source "drivers/i2c/target/Kconfig.hid"

endif # I2C_TARGET
14 changes: 14 additions & 0 deletions drivers/i2c/target/Kconfig.hid
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
config I2C_HID_TARGET
bool "Support HID over I2C target"

Check warning on line 2 in drivers/i2c/target/Kconfig.hid

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/i2c/target/Kconfig.hid:2 please, no spaces at the start of a line
depends on I2C_TARGET_BUFFER_MODE

Check warning on line 3 in drivers/i2c/target/Kconfig.hid

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/i2c/target/Kconfig.hid:3 please, no spaces at the start of a line

if I2C_HID_TARGET

config I2C_HID_TARGET_IN_BUF_COUNT
int "Number of buffers in the IN pool"
range 1 256
default 8
help
Number of buffers in the IN pool per HID instance.

endif
Loading
Loading