joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.45k stars 407 forks source link

Why limit software PWM to GPIO0~GPIO31? #540

Open JinShil opened 2 years ago

JinShil commented 2 years ago

I'm using a Raspberry Pi CM4 and a custom carrier board, and we need to use GPIO45 as a software PWM. However, when attempting to do so, pigpio returns a PI_BAD_USER_GPIO error status even though we are running pigpiod with -x -1.

Is there a reason for this limitation? Is the limitation supposed to be lifted when running with -x -1?

guymcswain commented 2 years ago

Is there a reason for this limitation?

The library covers bank1 gpio which is common to all rpi models. Extending full functionality to bank2 would have burdened resources across all models to support a small segment, so the author declined to make changes.