Combination of PWM and TFT display

PaulS:
You need to comment EVERY line in PWMInit(), so we can see whether you are setting that up right.

You need to explain WHY you are setting PWM up in a non-standard way.

Could you explain the non-standard way of setting PWM up refering to my comments?