nmaggioni commented on code in PR #16838:
URL: https://github.com/apache/nuttx/pull/16838#discussion_r2276382270


##########
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:
   They are determined by the physical status of the ADD0 pin of the IC and 
can't be modified arbitrarily, but their actual value depends on the specific 
variant of the sensor that you are using 
([datasheet](https://www.ti.com/lit/ds/symlink/tmp112.pdf), section 7.3.2.2):
   
   <img width="697" height="293" alt="image" 
src="https://github.com/user-attachments/assets/e3a83aca-0ebf-4b17-8e74-b8a8a1e9315f";
 />



-- 
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

Reply via email to