diff options
-rw-r--r-- | include/adc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h index ddb6c8246e..a73b4ac9aa 100644 --- a/include/adc.h +++ b/include/adc.h @@ -17,6 +17,7 @@ #include <zephyr_adc.h> #endif /* CONFIG_ZEPHYR */ +#ifdef CONFIG_ADC /* * Boards must provide this list of ADC channel definitions. This must match * the enum adc_channel list provided by the board. @@ -26,6 +27,7 @@ extern const struct adc_t adc_channels[]; #else extern struct adc_t adc_channels[]; #endif +#endif /* CONFIG_ADC */ /** * ADC initial. |