We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe669e commit e0b7124Copy full SHA for e0b7124
cores/arduino/zephyrCommon.cpp
@@ -221,7 +221,11 @@ PinStatus digitalRead(pin_size_t pinNumber) {
221
}
222
223
#ifndef MAX_TONE_PINS
224
+#if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), digital_pin_gpios)
225
#define MAX_TONE_PINS DT_PROP_LEN(DT_PATH(zephyr_user), digital_pin_gpios)
226
+#elif defined(ZARD_CONNECTOR)
227
+#define MAX_TONE_PINS DT_PROP_LEN(DT_NODELABEL(ZARD_CONNECTOR), gpio_map)
228
+#endif
229
#endif
230
231
struct pin_timer {
0 commit comments