Commit e9069d0
Add global GPIO support for ADC_PINS and PWM_PINS macros
When adc_pin_gpios or pwm_pin_gpios are used without digital_pin_gpios
(global-GPIO mode), the DIGITAL_PIN_GPIOS_FIND_PIN macro is not available.
This commit adds conditional compilation to use ZARD_GLOBAL_GPIO_NUM in
global-GPIO mode, which derives the global GPIO number from the GPIO
specifier (port and pin).
Fixes compilation issue when using adc-pin-gpios or pwm-pin-gpios in
global-GPIO mode.
Co-authored-by: soburi <458281+soburi@users.noreply.github.com>1 parent 318774a commit e9069d0
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
| 281 | + | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
279 | 291 | | |
280 | 292 | | |
281 | 293 | | |
| |||
0 commit comments