Improve system clock configuration. Started work for f4 cortex support