Analog Devices / Mbed OS EVAL-AD7124-Temperature_measurement

Dependencies:   tempsensors adi_console_menu platform_drivers

Revision:
3:f20f09251190
Parent:
1:c863d7e9e272
--- a/app/ad7124_regs_config_thermocouple.c	Mon Feb 22 05:16:41 2021 +0000
+++ b/app/ad7124_regs_config_thermocouple.c	Fri Mar 19 14:34:05 2021 +0530
@@ -86,7 +86,7 @@
 	{
 		AD7124_CH6_MAP_REG,
 		AD7124_CH_MAP_REG_SETUP(1) |
-		AD7124_CH_MAP_REG_AINP(CJC_4WIRE_RTD_AINP) | AD7124_CH_MAP_REG_AINM(CJC_4WIRE_RTD_AINM),
+		AD7124_CH_MAP_REG_AINP(CJC_RTD_AINP) | AD7124_CH_MAP_REG_AINM(CJC_RTD_AINM),
 		2, AD7124_RW
 	},
 	{
@@ -114,7 +114,7 @@
 	},
 	{
 		AD7124_CFG1_REG,
-		AD7124_CFG_REG_PGA(RTD_GAIN_VALUE) | AD7124_CFG_REG_REF_SEL(0) | 		// External REFIN
+		AD7124_CFG_REG_PGA(RTD_2WIRE_GAIN_VALUE) | AD7124_CFG_REG_REF_SEL(0) |   		// External REFIN
 		AD7124_CFG_REG_BIPOLAR |								// Bipolar inputs
 		AD7124_CFG_REG_AINN_BUFM | AD7124_CFG_REG_AIN_BUFP |   	// Input buffers enabled
 		AD7124_CFG_REG_REF_BUFM | AD7124_CFG_REG_REF_BUFP,	   	// Ref buffers enabled
@@ -173,4 +173,3 @@
 	{AD7124_GAIN6_REG, 0x500000, 3, AD7124_RW },
 	{AD7124_GAIN7_REG, 0x500000, 3, AD7124_RW },
 };
-