Skip to content

Commit b3f5993

Browse files
committed
x
1 parent ec3e589 commit b3f5993

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

cores/arduino/Arduino.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@
2323
DT_FOREACH_PROP_ELEM_VARGS(DT_PATH(zephyr_user), gpio_ports, ZARD_ACCUM_NGPIOS, \
2424
DT_PHANDLE_BY_IDX(n, p, i)) \
2525
DT_PHA_BY_IDX(n, p, i, pin)
26-
#define DIGITAL_PIN_EXISTS(n, p, i, dev, num) \
27-
(((dev == DT_REG_ADDR(DT_PHANDLE_BY_IDX(n, p, i))) && \
28-
(num == DT_PHA_BY_IDX(n, p, i, pin))) \
29-
? 1 \
30-
: 0)
31-
32-
/* Check all pins are defined only once */
33-
#define DIGITAL_PIN_CHECK_UNIQUE(i, _) \
34-
((DT_FOREACH_PROP_ELEM_SEP_VARGS( \
35-
DT_PATH(zephyr_user), digital_pin_gpios, DIGITAL_PIN_EXISTS, (+), \
36-
DT_REG_ADDR(DT_PHANDLE_BY_IDX(DT_PATH(zephyr_user), digital_pin_gpios, i)), \
37-
DT_PHA_BY_IDX(DT_PATH(zephyr_user), digital_pin_gpios, i, pin))) == 1)
38-
39-
#if !LISTIFY(DT_PROP_LEN(DT_PATH(zephyr_user), digital_pin_gpios), DIGITAL_PIN_CHECK_UNIQUE, (&&))
40-
#error "digital_pin_gpios has duplicate definition"
41-
#endif
42-
43-
#undef DIGITAL_PIN_CHECK_UNIQUE
4426

4527
#ifndef LED_BUILTIN
4628

0 commit comments

Comments
 (0)