File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ size_t pwm_pin_index(pin_size_t pinNumber) {
305305 ())
306306
307307const struct adc_dt_spec arduino_adc[] = {
308- #if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), adc_pin_gpios )
308+ #if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels )
309309 DT_FOREACH_PROP_ELEM (DT_PATH (zephyr_user), io_channels, ADC_DT_SPEC)
310310#elif defined(ZARD_ADC_CONNECTOR)
311311 DT_FOREACH_MAP_ENTRY (DT_NODELABEL (ZARD_ADC_CONNECTOR), io_channel_map, ADC_CONN_CHANNEL_DT)
@@ -322,7 +322,7 @@ const pin_size_t arduino_analog_pins[] = {
322322};
323323
324324struct adc_channel_cfg channel_cfg[ARRAY_SIZE(arduino_analog_pins)] = {
325- #if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), adc_pin_gpios )
325+ #if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels )
326326 DT_FOREACH_PROP_ELEM (DT_PATH (zephyr_user), io_channels, ADC_CH_CFG)
327327#elif defined(ZARD_ADC_CONNECTOR)
328328 DT_FOREACH_MAP_ENTRY (DT_NODELABEL (ZARD_ADC_CONNECTOR), io_channel_map, ADC_CONN_CHANNEL_CFG)
You can’t perform that action at this time.
0 commit comments