If you stop PWM with "PWM_Stop" API, it releases all allocated resource including the output pin.
So, the PWM output pin is Hi-Z!!!
If you want to stop PWM output pin at "low" level, you should use "PWM_TriggerCommand" API.
You should configure "PWM" component below.
The "#define pwmstop" definition enables PWM_Stop API.
The "#define pwmtriggercommand" definition enables PWM_TriggerCommand API.
Please use them exclusively.
Thank you very much for sharing your Code Example.
We appreciate your contribution for this.