Release version fixes

Created GPIO initialization function, to account for moved GPIO config
registers, which were used in main.c when building Release version.
Some additional C language compatibility fixes.
PWM0 corrections

Fixed PWM0 clock frequency deviation due to incorrect divider value.
Fixed PWM0 cycle and high time deviation.