pwm-gpio: add doxygen and remove unused var