mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
30 lines
744 B
Plaintext
30 lines
744 B
Plaintext
|
|
|
||
|
|
# Kconfig file for package I2C_TOOLS
|
||
|
|
menuconfig LPKG_USING_I2C_TOOLS
|
||
|
|
bool "i2c-tools: a collection of i2c tools including scan/read/write"
|
||
|
|
select RT_USING_PIN
|
||
|
|
select RT_USING_LIBC if RT_VER_NUM < 0x40100
|
||
|
|
select RT_USING_I2C
|
||
|
|
select RT_USING_I2C_BITOPS
|
||
|
|
select RT_USING_CPLUSPLUS
|
||
|
|
default n
|
||
|
|
|
||
|
|
if LPKG_USING_I2C_TOOLS
|
||
|
|
|
||
|
|
config LPKG_I2C_TOOLS_PATH
|
||
|
|
string
|
||
|
|
default "/packages/peripherals/i2c-tools"
|
||
|
|
|
||
|
|
config I2C_TOOLS_USE_SW_I2C
|
||
|
|
bool "Use sofware I2C"
|
||
|
|
help
|
||
|
|
Use software i2c instead of hardware
|
||
|
|
default n
|
||
|
|
|
||
|
|
if I2C_TOOLS_USE_SW_I2C
|
||
|
|
config I2C_TOOLS_SW_ACK_TIMEOUT
|
||
|
|
int "Software I2C ACK timeout in microseconds"
|
||
|
|
default "100"
|
||
|
|
endif
|
||
|
|
endif
|