summaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
index b52798419a..8342bc1fb6 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -21,7 +21,11 @@
* Boards must provide this list of ADC channel definitions. This must match
* the enum adc_channel list provided by the board.
*/
+#ifndef CONFIG_ADC_CHANNELS_RUNTIME_CONFIG
extern const struct adc_t adc_channels[];
+#else
+extern struct adc_t adc_channels[];
+#endif
/*
* Boards which use the ADC interface must provide enum adc_channel in the