We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a169d6c commit 847d3aaCopy full SHA for 847d3aa
hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogin_api.c
@@ -66,6 +66,11 @@ uint16_t analogin_read_u16(analogin_t *obj) {
66
67
adc16_channel_config.channelNumber = obj->adc & 0xF;
68
adc16_channel_config.enableInterruptOnConversionCompleted = false;
69
+
70
+#if defined(FSL_FEATURE_ADC16_HAS_DIFF_MODE) && FSL_FEATURE_ADC16_HAS_DIFF_MODE
71
+ adc16_channel_config.enableDifferentialConversion = false;
72
+#endif
73
74
/*
75
* When in software trigger mode, each conversion would be launched once calling the "ADC16_ChannelConfigure()"
76
* function, which works like writing a conversion command and executing it.
0 commit comments