procedure PWM_Stop(aWaitLast : boolean);
This procedure stops the PWM activity.
When aWaitLast is true, the procedure waits for the end of the current period before to stop the activity, so the current pulse is not reduced.