Fix non-CYW43 RP2040 builds
This commit is contained in:
parent
db4253e268
commit
732caedd16
@ -27,19 +27,23 @@
|
||||
#include "pins.h"
|
||||
|
||||
#include "shared-bindings/microcontroller/Pin.h"
|
||||
|
||||
#if CIRCUITPY_CYW43
|
||||
#include "bindings/cyw43/__init__.h"
|
||||
|
||||
#define CYW_PIN(p_number) \
|
||||
const mcu_pin_obj_t pin_CYW##p_number = { \
|
||||
{ &cyw43_pin_type }, \
|
||||
.number = p_number \
|
||||
}
|
||||
#endif
|
||||
|
||||
// This macro is used to simplify pin definition in boards/<board>/pins.c
|
||||
#define PIN(p_number) \
|
||||
const mcu_pin_obj_t pin_GPIO##p_number = { \
|
||||
{ &mcu_pin_type }, \
|
||||
.number = p_number \
|
||||
}
|
||||
#define CYW_PIN(p_number) \
|
||||
const mcu_pin_obj_t pin_CYW##p_number = { \
|
||||
{ &cyw43_pin_type }, \
|
||||
.number = p_number \
|
||||
}
|
||||
|
||||
PIN(0);
|
||||
PIN(1);
|
||||
|
Loading…
Reference in New Issue
Block a user