summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/zephyr_adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/zephyr_adc.h')
-rw-r--r--zephyr/shim/include/zephyr_adc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/shim/include/zephyr_adc.h b/zephyr/shim/include/zephyr_adc.h
index 7c0f3f3232..4d279bec86 100644
--- a/zephyr/shim/include/zephyr_adc.h
+++ b/zephyr/shim/include/zephyr_adc.h
@@ -30,8 +30,12 @@ struct adc_t {
struct adc_channel_cfg channel_cfg;
};
+#ifndef CONFIG_ADC_CHANNELS_RUNTIME_CONFIG
extern const struct adc_t adc_channels[];
#else
+extern struct adc_t adc_channels[];
+#endif /* CONFIG_ADC_CHANNELS_RUNTIME_CONFIG */
+#else
/* Empty declaration to avoid warnings if adc.h is included */
enum adc_channel {
ADC_CH_COUNT