PWM enable/disable function added

Simple function for enabling and disabling the PWM driver. Should be
used when entering sleep mode to reduce current consumption.