turn the blue light on when program is normal, turn red light on when there is a hard fault
moved the enabling of peripheral ports to the places that require them to be enabled.
duty cycles can be set for each of the pwm channels