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 db4253e commit 732caedCopy full SHA for 732caed
ports/raspberrypi/peripherals/pins.c
@@ -27,19 +27,23 @@
27
#include "pins.h"
28
29
#include "shared-bindings/microcontroller/Pin.h"
30
+
31
+#if CIRCUITPY_CYW43
32
#include "bindings/cyw43/__init__.h"
33
34
+#define CYW_PIN(p_number) \
35
+ const mcu_pin_obj_t pin_CYW##p_number = { \
36
+ { &cyw43_pin_type }, \
37
+ .number = p_number \
38
+ }
39
+#endif
40
41
// This macro is used to simplify pin definition in boards/<board>/pins.c
42
#define PIN(p_number) \
43
const mcu_pin_obj_t pin_GPIO##p_number = { \
44
{ &mcu_pin_type }, \
45
.number = p_number \
46
}
-#define CYW_PIN(p_number) \
- const mcu_pin_obj_t pin_CYW##p_number = { \
- { &cyw43_pin_type }, \
- .number = p_number \
- }
47
48
PIN(0);
49
PIN(1);
0 commit comments