Development mbed library for MAX32630FTHR

Dependents:   blinky_max32630fthr

Files at this revision

API Documentation at this revision

Comitter:
switches
Date:
Fri Dec 16 16:27:57 2016 +0000
Parent:
2:2cb9d52ef33b
Commit message:
Changed ADC scale for MAX32625 platforms to 1.2V full scale to match MAX32630 platforms

Changed in this revision

targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c Show annotated file Show diff for this revision Revisions of this file
diff -r 2cb9d52ef33b -r 1198227e6421 targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c
--- a/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c	Tue Dec 13 21:27:44 2016 +0000
+++ b/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c	Fri Dec 16 16:27:57 2016 +0000
@@ -65,7 +65,7 @@
     float result;
 
     // Start conversion with no input scaling and no input buffer bypass
-    ADC_StartConvert(obj->channel, 0, 0);
+    ADC_StartConvert(obj->channel, 1, 0);
 
     if (ADC_GetData(&tmp) == E_OVERFLOW) {
         result = FLOAT_FULL_SCALE;
@@ -83,7 +83,7 @@
     uint16_t result;
 
     // Start conversion with no input scaling and no input buffer bypass
-    ADC_StartConvert(obj->channel, 0, 0);
+    ADC_StartConvert(obj->channel, 1, 0);
 
     if (ADC_GetData(&tmp) == E_OVERFLOW) {
         result = INT_FULL_SCALE;