Skip to content

Commit 52541a1

Browse files
authored
Merge pull request #22 from soburi/codex/review-last-3-commits
cores: restrict connector fallback to arduino-header-r3 only
2 parents 7c4f30a + 1043c7c commit 52541a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cores/arduino/Arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#else
8181

8282
#if DT_NODE_EXISTS(DT_NODELABEL(arduino_header))
83+
#if DT_NODE_HAS_COMPAT(DT_NODELABEL(arduino_header), arduino_header_r3)
8384
#define ZARD_CONNECTOR arduino_header
8485

8586
#define ZARD_ARDUINO_HEADER_R3_PIN_NAME_A_0 A0
@@ -129,6 +130,9 @@
129130
#define ZARD_ARDUINO_HEADER_R3_IS_DIGITAL_20 1
130131
#define ZARD_ARDUINO_HEADER_R3_IS_DIGITAL_21 1
131132

133+
#else
134+
#error "Only arduino-header-r3 connector is supported"
135+
#endif
132136
#endif
133137

134138
#if DT_NODE_EXISTS(DT_NODELABEL(arduino_adc))

0 commit comments

Comments
 (0)