File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ports/raspberrypi/common-hal/microcontroller Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ bool speaker_enable_in_use;
46
46
STATIC uint32_t never_reset_pins ;
47
47
48
48
void reset_all_pins (void ) {
49
- for (size_t i = 0 ; i < 30 ; i ++ ) {
49
+ for (size_t i = 0 ; i < TOTAL_GPIO_COUNT ; i ++ ) {
50
50
if ((never_reset_pins & (1 << i )) != 0 ) {
51
51
continue ;
52
52
}
@@ -55,15 +55,15 @@ void reset_all_pins(void) {
55
55
}
56
56
57
57
void never_reset_pin_number (uint8_t pin_number ) {
58
- if (pin_number >= 32 ) {
58
+ if (pin_number >= TOTAL_GPIO_COUNT ) {
59
59
return ;
60
60
}
61
61
62
62
never_reset_pins |= 1 << pin_number ;
63
63
}
64
64
65
65
void reset_pin_number (uint8_t pin_number ) {
66
- if (pin_number >= 32 ) {
66
+ if (pin_number >= TOTAL_GPIO_COUNT ) {
67
67
return ;
68
68
}
69
69
@@ -134,7 +134,7 @@ void claim_pin(const mcu_pin_obj_t* pin) {
134
134
}
135
135
136
136
bool pin_number_is_free (uint8_t pin_number ) {
137
- if (pin_number >= 30 ) {
137
+ if (pin_number >= TOTAL_GPIO_COUNT ) {
138
138
return false;
139
139
}
140
140
You can’t perform that action at this time.
0 commit comments