Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
Revision 3:1198227e6421, committed 2016-12-16
- 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 |
--- 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;