drivers: adc: fix IF_ENABLED macro usage in ADS1X1X trigger
The ADC_ADS1X1X_TRIGGER macro was defined without an explicit value, preventing ALERT/RDY pin configuration even when alert_rdy_gpios were properly defined in devicetree. This occurred because the IF_ENABLED macro specifically requires macros to be defined as 1, not just defined empty. Fixed this by explicitly defining ADC_ADS1X1X_TRIGGER as 1 when alert_rdy_gpios properties are present in devicetree. Signed-off-by: Benjamin Geiger <BenjaminGeiger1@gmail.com>
This commit is contained in:
parent
af9ae5b894
commit
2ed8790e8b
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ LOG_MODULE_REGISTER(ADS1X1X, CONFIG_ADC_LOG_LEVEL);
|
|||
DT_ANY_COMPAT_HAS_PROP_STATUS_OKAY(ti_ads1015, alert_rdy_gpios) || \
|
||||
DT_ANY_COMPAT_HAS_PROP_STATUS_OKAY(ti_ads1014, alert_rdy_gpios)
|
||||
|
||||
#define ADC_ADS1X1X_TRIGGER
|
||||
#define ADC_ADS1X1X_TRIGGER 1
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue