Revert "Clean up PWM"

This reverts commit b39126dc584df42a5365c79e15db1b5590056cd1.