Openblt proteus (#3797)

* OpentBLT: fix for STM32F4/H7

* Proteus: OpenBLT: switch to HSI

* Proteus: Enable OpenBLT. (not tested!)
This commit is contained in:
Andrey G 2022-01-17 01:25:36 +03:00 committed by GitHub
parent f35d4d8b58
commit 17ce890105
3 changed files with 6 additions and 6 deletions

View File

@ -4,6 +4,6 @@ export PROJECT_BOARD=proteus
export PROJECT_CPU=ARCH_STM32F4 export PROJECT_CPU=ARCH_STM32F4
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f4 export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f4
# export USE_OPENBLT=yes export USE_OPENBLT=yes
bash ../common_make.sh bash ../common_make.sh

View File

@ -4,6 +4,6 @@ export PROJECT_BOARD=proteus
export PROJECT_CPU=ARCH_STM32F7 export PROJECT_CPU=ARCH_STM32F7
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f7 export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f7
# export USE_OPENBLT=yes #export USE_OPENBLT=yes
bash ../common_make.sh bash ../common_make.sh

View File

@ -121,11 +121,11 @@ static void SystemClock_Config(void)
/* Initializes the RCC Oscillators according to the specified parameters /* Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure. * in the RCC_OscInitTypeDef structure.
*/ */
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PLLM = 8; RCC_OscInitStruct.PLL.PLLM = 16;
RCC_OscInitStruct.PLL.PLLN = 336; RCC_OscInitStruct.PLL.PLLN = 336;
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
RCC_OscInitStruct.PLL.PLLQ = 7; RCC_OscInitStruct.PLL.PLLQ = 7;