Implement configurable system clock generation
commit569f0bae627981ca8d3b3fb58532fd5dfc2827e5
authorjflyper <shinoda@jaist.ac.jp>
Sat, 10 Nov 2018 11:44:05 +0000 (10 20:44 +0900)
committerMichael Keller <github@ike.ch>
Fri, 23 Nov 2018 02:36:10 +0000 (23 15:36 +1300)
tree6923b6debb61260a0072125e16a415afb13db486
parent2a748e73d0f1dcde2a639c7e58ce80d2a8fc051b
Implement configurable system clock generation

PLL-HSE working

PLL-HSI working

Move SystemCoreClockUpdate in SystemInit to end

Switching from HSI-PLL to HSE-PLL (and back) is working

It works during various levels of overclocking.

Renamed CLI variable hse_mhz to system_hse_mhz

Restored the original position of the spectrum bind code

The internal logic of the spectrum bind code will prevent binding
process to fire if executed after soft reset.

Remove stale call to delay

Add a comment about call to spektrumBind placement

Declared SystemXXXSource functions, handled sign-ness warning.

Cleaned up commented out sections

USB clock generation for F446

Default HSE value for backward compatibility

Cleaned up more unused stuff

Handle non-F4 targets

Added comment about PLL_M selection

Removed fake gyro/acc from test target
src/main/fc/config.c
src/main/fc/config.h
src/main/fc/init.c
src/main/interface/cli.c
src/main/interface/settings.c
src/main/target/STM32F7X2/config/NERO.config
src/main/target/common_post.h
src/main/target/system_stm32f4xx.c
src/main/target/system_stm32f4xx.h