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 ffded48 commit c9210a6Copy full SHA for c9210a6
ports/rp2/machine_pin.c
@@ -71,7 +71,7 @@ typedef struct _machine_pin_irq_obj_t {
71
72
STATIC const mp_irq_methods_t machine_pin_irq_methods;
73
74
-STATIC const machine_pin_obj_t machine_pin_obj[N_GPIOS] = {
+STATIC const machine_pin_obj_t machine_pin_obj[NUM_BANK0_GPIOS] = {
75
{{&machine_pin_type}, 0},
76
{{&machine_pin_type}, 1},
77
{{&machine_pin_type}, 2},
@@ -134,7 +134,7 @@ void machine_pin_init(void) {
134
}
135
136
void machine_pin_deinit(void) {
137
- for (int i = 0; i < N_GPIOS; ++i) {
+ for (int i = 0; i < NUM_BANK0_GPIOS; ++i) {
138
gpio_set_irq_enabled(i, GPIO_IRQ_ALL, false);
139
140
irq_set_enabled(IO_IRQ_BANK0, false);
0 commit comments