File tree Expand file tree Collapse file tree 4 files changed +1
-47
lines changed Expand file tree Collapse file tree 4 files changed +1
-47
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ void HardwarePWM::setClockDiv(uint8_t div)
78
78
*/
79
79
bool HardwarePWM::addPin (uint8_t pin)
80
80
{
81
- VERIFY ( isPinValid (pin) && ( _count <= MAX_CHANNELS) );
81
+ VERIFY ( _count <= MAX_CHANNELS );
82
82
83
83
// Check if pin is already configured
84
84
for (uint8_t i=0 ; i<_count; i++)
Original file line number Diff line number Diff line change @@ -118,21 +118,6 @@ static const uint8_t SCK = PIN_SPI_SCK ;
118
118
#define PIN_WIRE_SDA (25u)
119
119
#define PIN_WIRE_SCL (26u)
120
120
121
-
122
- static inline bool isPinValid (uint32_t pin )
123
- {
124
- // 0, 1 is xtal
125
- if (pin >= PINS_COUNT ) return false;
126
-
127
- const uint8_t forbid [] = { 0 , 1 , };
128
- for (uint8_t i = 0 ; i < sizeof (forbid ); i ++ )
129
- {
130
- if ( pin == forbid [i ] ) return false;
131
- }
132
-
133
- return true;
134
- }
135
-
136
121
#ifdef __cplusplus
137
122
}
138
123
#endif
Original file line number Diff line number Diff line change @@ -118,22 +118,6 @@ static const uint8_t SCK = PIN_SPI_SCK ;
118
118
#define PIN_WIRE_SDA (25u)
119
119
#define PIN_WIRE_SCL (26u)
120
120
121
-
122
- // TODO remove
123
- static inline bool isPinValid (uint32_t pin )
124
- {
125
- // 0, 1 is xtal
126
- if (pin >= PINS_COUNT ) return false;
127
-
128
- const uint8_t forbid [] = { 0 , 1 , };
129
- for (uint8_t i = 0 ; i < sizeof (forbid ); i ++ )
130
- {
131
- if ( pin == forbid [i ] ) return false;
132
- }
133
-
134
- return true;
135
- }
136
-
137
121
#ifdef __cplusplus
138
122
}
139
123
#endif
Original file line number Diff line number Diff line change @@ -131,21 +131,6 @@ static const uint8_t SCK = PIN_SPI_SCK ;
131
131
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
132
132
#define EXTERNAL_FLASH_DEVICES MX25R6435F
133
133
134
- // TODO remove
135
- static inline bool isPinValid (uint32_t pin )
136
- {
137
- // 0, 1 is xtal
138
- if (pin >= PINS_COUNT ) return false;
139
-
140
- const uint8_t forbid [] = { 0 , 1 , };
141
- for (uint8_t i = 0 ; i < sizeof (forbid ); i ++ )
142
- {
143
- if ( pin == forbid [i ] ) return false;
144
- }
145
-
146
- return true;
147
- }
148
-
149
134
#ifdef __cplusplus
150
135
}
151
136
#endif
You can’t perform that action at this time.
0 commit comments