Fix type issues in PWM module for PicoC.
+ removed some redundant.