fdcavalcanti commented on code in PR #16838: URL: https://github.com/apache/nuttx/pull/16838#discussion_r2276331281
########## drivers/sensors/Kconfig: ########## @@ -2146,4 +2146,70 @@ config SENSORS_FS3000_THREAD_STACKSIZE endif # SENSORS_FS3000 +config SENSORS_TMP112 + bool "Texas Instruments TMP112x Temperature Sensor support" + default n + select I2C + ---help--- + Enable driver support for the Texas Instruments TMP112x temperature sensor. + +if SENSORS_TMP112 + +config TMP112_I2C_BUS + int "I2C Bus number" + default 1 + ---help--- + The number of the I2C bus that this sensor is connected to. + +config TMP112_I2C_FREQUENCY + int "TMP112 I2C frequency" + default 400000 + +config TMP112_I2C_ADDR_1 + hex "I2C Address 1" + default 0x48 + ---help--- + Address used for the first sensor on the bus. + +config TMP112_ENABLE_2 + bool "Enable a second sensor" + default n + ---help--- + Register a second sensor on the bus. + +config TMP112_I2C_ADDR_2 + hex "I2C Address 2" + default 0x49 Review Comment: Are those addresses possible to be modified? If not, then it is not necessary to keep then as config, just make them constants. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org