Added PWM init, it is not tested yet.