Openblt proteus (#3797)
* OpentBLT: fix for STM32F4/H7 * Proteus: OpenBLT: switch to HSI * Proteus: Enable OpenBLT. (not tested!)
This commit is contained in:
parent
b82c392386
commit
2a3c64d92a
|
@ -4,6 +4,6 @@ export PROJECT_BOARD=proteus
|
|||
export PROJECT_CPU=ARCH_STM32F4
|
||||
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f4
|
||||
|
||||
# export USE_OPENBLT=yes
|
||||
export USE_OPENBLT=yes
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -4,6 +4,6 @@ export PROJECT_BOARD=proteus
|
|||
export PROJECT_CPU=ARCH_STM32F7
|
||||
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f7
|
||||
|
||||
# export USE_OPENBLT=yes
|
||||
#export USE_OPENBLT=yes
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -121,11 +121,11 @@ static void SystemClock_Config(void)
|
|||
/* Initializes the RCC Oscillators according to the specified parameters
|
||||
* in the RCC_OscInitTypeDef structure.
|
||||
*/
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
|
||||
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
|
||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||
RCC_OscInitStruct.PLL.PLLM = 8;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
|
||||
RCC_OscInitStruct.PLL.PLLM = 16;
|
||||
RCC_OscInitStruct.PLL.PLLN = 336;
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||||
RCC_OscInitStruct.PLL.PLLQ = 7;
|
||||
|
|
Loading…
Reference in New Issue