Skip to content

Commit afee331

Browse files
committed
x
1 parent f44ea7d commit afee331

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cores/arduino/Arduino.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
#define SUM_NGPIOS(i, n, p) \
2525
DT_PROP(DT_PROP_BY_IDX(n, p, i), ngpios)
2626

27-
#define GPIO_OFFSET_IDX_0 1
28-
2927
#define GPIO_OFFSET(n, p, i) \
30-
int hoge##i = COND_CODE_1(UTIL_CAT(GPIO_OFFSET_IDX_, i), (0), (LISTIFY(i, SUM_NGPIOS, (+), n, p)));
28+
int hoge##i = LISTIFY(UTIL_INC(i), SUM_NGPIOS, (+), n, p);
3129

3230
#define DIGITAL_PIN_EXISTS(n, p, i, dev, num) \
3331
(((dev == DT_REG_ADDR(DT_PHANDLE_BY_IDX(n, p, i))) && \

0 commit comments

Comments
 (0)