Update pwm.h

Added low level buffer operations