1#=============================================================================== 2# @brief Kconfig file. 3# Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 4#=============================================================================== 5config SAMPLE_SUPPORT_I2C_MASTER 6 bool 7 prompt "Support I2C Master Sample." 8 default n 9 depends on SAMPLE_SUPPORT_I2C 10 help 11 This option means support I2C Master Sample. 12 13config I2C_MASTER_BUS_ID 14 int 15 prompt "Choose I2C master bus id." 16 depends on SAMPLE_SUPPORT_I2C_MASTER 17 default 2 18 19config I2C_SCL_MASTER_PIN 20 int 21 prompt "Choose I2C SCL master pin." 22 depends on SAMPLE_SUPPORT_I2C_MASTER 23 default 8 24 25config I2C_SDA_MASTER_PIN 26 int 27 prompt "Choose I2C SDA master pin." 28 depends on SAMPLE_SUPPORT_I2C_MASTER 29 default 9 30 31config I2C_MASTER_PIN_MODE 32 int 33 prompt "Choose I2C master pin mode." 34 depends on SAMPLE_SUPPORT_I2C_MASTER 35 default 3 36 37config SAMPLE_SUPPORT_I2C_SLAVE 38 bool 39 prompt "Support I2C Slave Sample." 40 default n 41 depends on SAMPLE_SUPPORT_I2C 42 help 43 This option means support I2C Slave Sample. 44 45config I2C_SLAVE_BUS_ID 46 int 47 prompt "Choose I2C slave bus id." 48 depends on SAMPLE_SUPPORT_I2C_SLAVE 49 default 2 50 51config I2C_SCL_SLAVE_PIN 52 int 53 prompt "Choose I2C SCL slave pin." 54 depends on SAMPLE_SUPPORT_I2C_SLAVE 55 default 8 56 57config I2C_SDA_SLAVE_PIN 58 int 59 prompt "Choose I2C SDA slave pin." 60 depends on SAMPLE_SUPPORT_I2C_SLAVE 61 default 9 62 63config I2C_SLAVE_PIN_MODE 64 int 65 prompt "Choose I2C slave pin mode." 66 depends on SAMPLE_SUPPORT_I2C_SLAVE 67 default 3 68 69config I2C_TRANSFER_LEN 70 int 71 prompt "Choose I2C transfer length." 72 depends on SAMPLE_SUPPORT_I2C 73 default 8