From 1adadaec3ddb460cd9fff27bed80db95b9239364 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Sun, 15 Dec 2024 00:30:35 +0800 Subject: [PATCH] eee --- .mxproject | 2 +- Core/Inc/main.h | 5 - Core/Src/main.c | 53 +++----- MDK-ARM/lvgl.uvoptx | 42 +++--- MDK-ARM/lvgl.uvprojx | 228 ++++++++++---------------------- MDK-ARM/startup_stm32f072xb.lst | 54 ++++---- MDK-ARM/startup_stm32f072xb.s | 4 +- lvgl.ioc | 82 +++++++----- 8 files changed, 197 insertions(+), 273 deletions(-) diff --git a/.mxproject b/.mxproject index 6929829..f39bd2c 100644 --- a/.mxproject +++ b/.mxproject @@ -4,7 +4,7 @@ LibFiles=Drivers\STM32F0xx_HAL_Driver\Inc\stm32f0xx_ll_gpio.h;Drivers\STM32F0xx_ [PreviousUsedKeilFiles] SourceFiles=..\Core\Src\main.c;..\Core\Src\stm32f0xx_it.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_gpio.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_adc.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_dma.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_rcc.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_utils.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_exti.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_spi.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_pwr.c;..\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c;..\Core\Src\system_stm32f0xx.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_gpio.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_adc.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_dma.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_rcc.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_utils.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_exti.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_spi.c;..\Drivers\STM32F0xx_HAL_Driver\Src\stm32f0xx_ll_pwr.c;..\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c;..\Core\Src\system_stm32f0xx.c;;; HeaderPath=..\Drivers\STM32F0xx_HAL_Driver\Inc;..\Drivers\CMSIS\Device\ST\STM32F0xx\Include;..\Drivers\CMSIS\Include;..\Core\Inc; -CDefines=USE_FULL_LL_DRIVER;HSE_VALUE:8000000;HSE_STARTUP_TIMEOUT:100;LSE_STARTUP_TIMEOUT:5000;LSE_VALUE:32768;HSI_VALUE:8000000;LSI_VALUE:40000;VDD_VALUE:3300;PREFETCH_ENABLE:1;INSTRUCTION_CACHE_ENABLE:0;DATA_CACHE_ENABLE:0;STM32F072xB;USE_FULL_LL_DRIVER;HSE_VALUE:8000000;HSE_STARTUP_TIMEOUT:100;LSE_STARTUP_TIMEOUT:5000;LSE_VALUE:32768;HSI_VALUE:8000000;LSI_VALUE:40000;VDD_VALUE:3300;PREFETCH_ENABLE:1;INSTRUCTION_CACHE_ENABLE:0;DATA_CACHE_ENABLE:0; +CDefines=USE_FULL_LL_DRIVER;HSE_VALUE:24000000;HSE_STARTUP_TIMEOUT:100;LSE_STARTUP_TIMEOUT:5000;LSE_VALUE:32768;HSI_VALUE:8000000;LSI_VALUE:40000;VDD_VALUE:3300;PREFETCH_ENABLE:1;INSTRUCTION_CACHE_ENABLE:0;DATA_CACHE_ENABLE:0;STM32F072xB;USE_FULL_LL_DRIVER;HSE_VALUE:24000000;HSE_STARTUP_TIMEOUT:100;LSE_STARTUP_TIMEOUT:5000;LSE_VALUE:32768;HSI_VALUE:8000000;LSI_VALUE:40000;VDD_VALUE:3300;PREFETCH_ENABLE:1;INSTRUCTION_CACHE_ENABLE:0;DATA_CACHE_ENABLE:0; [PreviousGenFiles] AdvancedFolderStructure=true diff --git a/Core/Inc/main.h b/Core/Inc/main.h index 2324e6b..f1afdd9 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -67,11 +67,6 @@ extern "C" { /* Exported functions prototypes ---------------------------------------------*/ void Error_Handler(void); - - void MX_GPIO_Init(void); - void MX_DMA_Init(void); - void MX_SPI2_Init(void); - void MX_ADC_Init(void); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ diff --git a/Core/Src/main.c b/Core/Src/main.c index aa2014b..60f309a 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -18,18 +18,7 @@ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" -#include "stm32f0xx_ll_adc.h" -#include "stm32f0xx_ll_dma.h" -#include "stm32f0xx_ll_crs.h" -#include "stm32f0xx_ll_rcc.h" -#include "stm32f0xx_ll_bus.h" -#include "stm32f0xx_ll_system.h" -#include "stm32f0xx_ll_exti.h" -#include "stm32f0xx_ll_cortex.h" -#include "stm32f0xx_ll_utils.h" -#include "stm32f0xx_ll_pwr.h" -#include "stm32f0xx_ll_spi.h" -#include "stm32f0xx_ll_gpio.h" + /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "../lvgl/lvgl.h" @@ -87,18 +76,10 @@ void SystemClock_Config(void); */ void SystemClock_Config(void) { - LL_FLASH_SetLatency(LL_FLASH_LATENCY_0); - while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_0) + LL_FLASH_SetLatency(LL_FLASH_LATENCY_1); + while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_1) { } - LL_RCC_HSI_Enable(); - - /* Wait till HSI is ready */ - while(LL_RCC_HSI_IsReady() != 1) - { - - } - LL_RCC_HSI_SetCalibTrimming(16); LL_RCC_HSI14_Enable(); /* Wait till HSI14 is ready */ @@ -107,17 +88,24 @@ void SystemClock_Config(void) } LL_RCC_HSI14_SetCalibTrimming(16); - LL_RCC_SetAHBPrescaler(LL_RCC_SYSCLK_DIV_1); - LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_1); - LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_HSI); + LL_RCC_HSI48_Enable(); - /* Wait till System clock is ready */ - while(LL_RCC_GetSysClkSource() != LL_RCC_SYS_CLKSOURCE_STATUS_HSI) + /* Wait till HSI48 is ready */ + while(LL_RCC_HSI48_IsReady() != 1) { } - LL_Init1msTick(8000000); - LL_SetSystemCoreClock(8000000); + LL_RCC_SetAHBPrescaler(LL_RCC_SYSCLK_DIV_1); + LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_1); + LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_HSI48); + + /* Wait till System clock is ready */ + while(LL_RCC_GetSysClkSource() != LL_RCC_SYS_CLKSOURCE_STATUS_HSI48) + { + + } + LL_Init1msTick(48000000); + LL_SetSystemCoreClock(48000000); LL_RCC_HSI14_EnableADCControl(); } @@ -285,13 +273,12 @@ void SystemClock_Config(void) SPI_InitStruct.ClockPolarity = LL_SPI_POLARITY_LOW; SPI_InitStruct.ClockPhase = LL_SPI_PHASE_1EDGE; SPI_InitStruct.NSS = LL_SPI_NSS_SOFT; - SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV2; + SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV4; SPI_InitStruct.BitOrder = LL_SPI_MSB_FIRST; SPI_InitStruct.CRCCalculation = LL_SPI_CRCCALCULATION_DISABLE; SPI_InitStruct.CRCPoly = 7; LL_SPI_Init(SPI2, &SPI_InitStruct); - /* USER CODE BEGIN SPI2_Init 2 */ /* USER CODE END SPI2_Init 2 */ @@ -327,6 +314,7 @@ void SystemClock_Config(void) /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ + LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOF); LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOA); LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOB); @@ -347,7 +335,7 @@ void SystemClock_Config(void) /**/ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_6); - LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7); + /**/ GPIO_InitStruct.Pin = LL_GPIO_PIN_2; GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT; @@ -449,6 +437,7 @@ void SystemClock_Config(void) GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL; GPIO_InitStruct.Pull = LL_GPIO_PULL_UP; LL_GPIO_Init(GPIOB, &GPIO_InitStruct); + GPIO_InitStruct.Pin = LL_GPIO_PIN_7; GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT; GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH; diff --git a/MDK-ARM/lvgl.uvoptx b/MDK-ARM/lvgl.uvoptx index 1dea675..a1f4492 100644 --- a/MDK-ARM/lvgl.uvoptx +++ b/MDK-ARM/lvgl.uvoptx @@ -1,4 +1,4 @@ - + 1.0 @@ -26,7 +26,7 @@ 0x4 ARM-ADS - 8000000 + 24000000 1 1 @@ -45,7 +45,7 @@ 79 66 8 - + 1 @@ -133,23 +133,23 @@ 0 0 7 - - - - - - - - - - + + + + + + + + + + Segger\JL2CM3.dll 0 DLGUARM - + 0 @@ -164,7 +164,7 @@ 0 ARMDBGFLAGS - + 0 @@ -196,8 +196,8 @@ 0 1 ..\ILI9341\core.c - - + + 1 @@ -212,8 +212,8 @@ 0 1 ../Core/Src/stm32f0xx_it.c - - + + @@ -245,8 +245,8 @@ 0 0 - - + + diff --git a/MDK-ARM/lvgl.uvprojx b/MDK-ARM/lvgl.uvprojx index 0b4de50..62b5014 100644 --- a/MDK-ARM/lvgl.uvprojx +++ b/MDK-ARM/lvgl.uvprojx @@ -1,10 +1,7 @@ - - - + + 2.1 -
### uVision Project, (C) Keil Software
- lvgl @@ -17,28 +14,28 @@ Keil.STM32F0xx_DFP.2.1.1 https://www.keil.com/pack/ IRAM(0x20000000-0x20003FFF) IROM(0x8000000-0x801FFFF) CLOCK(8000000) CPUTYPE("Cortex-M0") - - - - - - - - - - - - - - + + + + + + + + + + + + + + $$Device:STM32F072CBTx$CMSIS/SVD/STM32F0x2.svd 0 0 - - - - - + + + + + 0 0 @@ -53,15 +50,15 @@ 1 1 1 - + 1 0 0 0 0 - - + + 0 0 0 @@ -70,8 +67,8 @@ 0 0 - - + + 0 0 0 @@ -80,13 +77,13 @@ 0 1 - - + + 0 0 0 - + 0 @@ -100,8 +97,8 @@ 0 0 3 - - + + 0 @@ -110,7 +107,7 @@ DARMCM1.DLL -pCM0 SARMCM3.DLL - + TARMCM1.DLL -pCM0 @@ -149,18 +146,18 @@ 0 7 - - - - - + + + + + - - - - - + + + + + Segger\JL2CM3.dll @@ -175,11 +172,11 @@ 1 STLink\ST-LINKIII-KEIL_SWO.dll - - - - - + + + + + 0 @@ -212,7 +209,7 @@ 0 0 "Cortex-M0" - + 0 0 0 @@ -343,7 +340,7 @@ 0x0 - + 1 @@ -362,9 +359,9 @@ 1 0 - - STM32F072xB,USE_FULL_LL_DRIVER,HSE_VALUE=8000000,HSE_STARTUP_TIMEOUT=100,LSE_STARTUP_TIMEOUT=5000,LSE_VALUE=32768,HSI_VALUE=8000000,LSI_VALUE=40000,VDD_VALUE=3300,PREFETCH_ENABLE=1,INSTRUCTION_CACHE_ENABLE=0,DATA_CACHE_ENABLE=0 - + + STM32F072xB,USE_FULL_LL_DRIVER,HSE_STARTUP_TIMEOUT=100,LSE_STARTUP_TIMEOUT=5000,LSE_VALUE=32768,HSI_VALUE=8000000,LSI_VALUE=40000,VDD_VALUE=3300,PREFETCH_ENABLE=1,INSTRUCTION_CACHE_ENABLE=0,DATA_CACHE_ENABLE=0,HSE_VALUE=24000000 + ../Core/Inc;../Drivers/STM32F0xx_HAL_Driver/Inc;../Drivers/CMSIS/Device/ST/STM32F0xx/Include;../Drivers/CMSIS/Include;../ILI9341;../../lvgl;../lvgl @@ -379,10 +376,10 @@ 0 0 - - - - + + + + @@ -394,13 +391,13 @@ 0 0x08000000 0x20000000 - - - - - - - + + + + + + + @@ -889,6 +886,11 @@ 1 ..\src\setup_ui.c + + startup.c + 1 + .\startup.c + main.c 1 @@ -899,11 +901,6 @@ 1 ../Core/Src/stm32f0xx_it.c - - startup.c - 1 - .\startup.c - @@ -931,8 +928,6 @@ 2 2 11 - - 0 @@ -952,12 +947,6 @@ 2 2 2 - - - - - - 2 @@ -969,12 +958,6 @@ 2 2 2 - - - - - - @@ -996,8 +979,6 @@ 2 2 11 - - 1 @@ -1017,12 +998,6 @@ 2 2 2 - - - - - - @@ -1044,8 +1019,6 @@ 2 2 11 - - 1 @@ -1065,12 +1038,6 @@ 2 2 2 - - - - - - @@ -1092,8 +1059,6 @@ 2 2 11 - - 1 @@ -1113,12 +1078,6 @@ 2 2 2 - - - - - - @@ -1140,8 +1099,6 @@ 2 2 11 - - 1 @@ -1161,12 +1118,6 @@ 2 2 2 - - - - - - @@ -1188,8 +1139,6 @@ 2 2 11 - - 1 @@ -1209,12 +1158,6 @@ 2 2 2 - - - - - - @@ -1236,8 +1179,6 @@ 2 2 11 - - 1 @@ -1257,12 +1198,6 @@ 2 2 2 - - - - - - @@ -1284,8 +1219,6 @@ 2 2 11 - - 1 @@ -1305,12 +1238,6 @@ 2 2 2 - - - - - - @@ -1332,8 +1259,6 @@ 2 2 11 - - 1 @@ -1353,12 +1278,6 @@ 2 2 2 - - - - - - @@ -1368,18 +1287,17 @@ - - + - + - + - + -
+ diff --git a/MDK-ARM/startup_stm32f072xb.lst b/MDK-ARM/startup_stm32f072xb.lst index 19645c8..3d58f7e 100644 --- a/MDK-ARM/startup_stm32f072xb.lst +++ b/MDK-ARM/startup_stm32f072xb.lst @@ -47,22 +47,22 @@ ARM Macro Assembler Page 1 30 00000000 ; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> 31 00000000 ; 32 00000000 - 33 00000000 00000500 + 33 00000000 00000900 Stack_Size - EQU 0x500 + EQU 0x900 34 00000000 35 00000000 AREA STACK, NOINIT, READWRITE, ALIGN =3 36 00000000 Stack_Mem SPACE Stack_Size - 37 00000500 __initial_sp - 38 00000500 - 39 00000500 - 40 00000500 ; Heap Configuration - 41 00000500 ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> - 42 00000500 ; - 43 00000500 - 44 00000500 00000400 + 37 00000900 __initial_sp + 38 00000900 + 39 00000900 + 40 00000900 ; Heap Configuration + 41 00000900 ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> + 42 00000900 ; + 43 00000900 + 44 00000900 00000200 @@ -70,21 +70,21 @@ ARM Macro Assembler Page 2 Heap_Size - EQU 0x400 - 45 00000500 - 46 00000500 AREA HEAP, NOINIT, READWRITE, ALIGN= + EQU 0x200 + 45 00000900 + 46 00000900 AREA HEAP, NOINIT, READWRITE, ALIGN= 3 47 00000000 __heap_base 48 00000000 Heap_Mem SPACE Heap_Size - 49 00000400 __heap_limit - 50 00000400 - 51 00000400 PRESERVE8 - 52 00000400 THUMB - 53 00000400 - 54 00000400 - 55 00000400 ; Vector Table Mapped to Address 0 at Reset - 56 00000400 AREA RESET, DATA, READONLY + 49 00000200 __heap_limit + 50 00000200 + 51 00000200 PRESERVE8 + 52 00000200 THUMB + 53 00000200 + 54 00000200 + 55 00000200 ; Vector Table Mapped to Address 0 at Reset + 56 00000200 AREA RESET, DATA, READONLY 57 00000000 EXPORT __Vectors 58 00000000 EXPORT __Vectors_End 59 00000000 EXPORT __Vectors_Size @@ -383,8 +383,8 @@ ARM Macro Assembler Page 6 00000000 00000000 00000000 - 00000500 - 00000400 + 00000900 + 00000200 00000000 Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --apcs=interw ork --depend=lvgl\startup_stm32f072xb.d -olvgl\startup_stm32f072xb.o -ID:\a\lvg @@ -421,7 +421,7 @@ Symbol: Stack_Mem At line 245 in file startup_stm32f072xb.s At line 247 in file startup_stm32f072xb.s -__initial_sp 00000500 +__initial_sp 00000900 Symbol: __initial_sp Definitions @@ -461,7 +461,7 @@ Symbol: __heap_base Uses None Comment: __heap_base unused -__heap_limit 00000400 +__heap_limit 00000200 Symbol: __heap_limit Definitions @@ -918,7 +918,7 @@ Comment: __user_initial_stackheap used once ARM Macro Assembler Page 1 Alphabetic symbol ordering Absolute symbols -Heap_Size 00000400 +Heap_Size 00000200 Symbol: Heap_Size Definitions @@ -927,7 +927,7 @@ Symbol: Heap_Size At line 48 in file startup_stm32f072xb.s At line 246 in file startup_stm32f072xb.s -Stack_Size 00000500 +Stack_Size 00000900 Symbol: Stack_Size Definitions diff --git a/MDK-ARM/startup_stm32f072xb.s b/MDK-ARM/startup_stm32f072xb.s index 962dfc1..b979441 100644 --- a/MDK-ARM/startup_stm32f072xb.s +++ b/MDK-ARM/startup_stm32f072xb.s @@ -30,7 +30,7 @@ ; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> ; -Stack_Size EQU 0x500 +Stack_Size EQU 0x900 AREA STACK, NOINIT, READWRITE, ALIGN=3 Stack_Mem SPACE Stack_Size @@ -41,7 +41,7 @@ __initial_sp ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; -Heap_Size EQU 0x400 +Heap_Size EQU 0x200 AREA HEAP, NOINIT, READWRITE, ALIGN=3 __heap_base diff --git a/lvgl.ioc b/lvgl.ioc index fcfb29b..c71c809 100644 --- a/lvgl.ioc +++ b/lvgl.ioc @@ -27,29 +27,31 @@ Mcu.IP5=SYS Mcu.IPNb=6 Mcu.Name=STM32F072C(8-B)Tx Mcu.Package=LQFP48 -Mcu.Pin0=PA0 -Mcu.Pin1=PA1 -Mcu.Pin10=PB10 -Mcu.Pin11=PB13 -Mcu.Pin12=PB14 -Mcu.Pin13=PB15 -Mcu.Pin14=PA9 -Mcu.Pin15=PA10 -Mcu.Pin16=PA13 -Mcu.Pin17=PA14 -Mcu.Pin18=PB3 -Mcu.Pin19=PB5 -Mcu.Pin2=PA2 -Mcu.Pin20=PB6 -Mcu.Pin21=VP_SYS_VS_Systick -Mcu.Pin3=PA3 -Mcu.Pin4=PA4 -Mcu.Pin5=PA5 -Mcu.Pin6=PA6 -Mcu.Pin7=PA7 -Mcu.Pin8=PB0 -Mcu.Pin9=PB1 -Mcu.PinsNb=22 +Mcu.Pin0=PF0-OSC_IN +Mcu.Pin1=PF1-OSC_OUT +Mcu.Pin10=PB0 +Mcu.Pin11=PB1 +Mcu.Pin12=PB10 +Mcu.Pin13=PB13 +Mcu.Pin14=PB14 +Mcu.Pin15=PB15 +Mcu.Pin16=PA9 +Mcu.Pin17=PA10 +Mcu.Pin18=PA13 +Mcu.Pin19=PA14 +Mcu.Pin2=PA0 +Mcu.Pin20=PB3 +Mcu.Pin21=PB5 +Mcu.Pin22=PB6 +Mcu.Pin23=VP_SYS_VS_Systick +Mcu.Pin3=PA1 +Mcu.Pin4=PA2 +Mcu.Pin5=PA3 +Mcu.Pin6=PA4 +Mcu.Pin7=PA5 +Mcu.Pin8=PA6 +Mcu.Pin9=PA7 +Mcu.PinsNb=24 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F072CBTx @@ -116,6 +118,12 @@ PB6.GPIOParameters=GPIO_PuPd PB6.GPIO_PuPd=GPIO_PULLUP PB6.Locked=true PB6.Signal=GPIO_Output +PF0-OSC_IN.Locked=true +PF0-OSC_IN.Mode=HSE-External-Oscillator +PF0-OSC_IN.Signal=RCC_OSC_IN +PF1-OSC_OUT.Locked=true +PF1-OSC_OUT.Mode=HSE-External-Oscillator +PF1-OSC_OUT.Signal=RCC_OSC_OUT PinOutPanel.RotationAngle=0 ProjectManager.AskForMigrate=true ProjectManager.BackupPrevious=false @@ -148,21 +156,35 @@ ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptBeforePath= ProjectManager.UnderRoot=false ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-LL-true,2-MX_GPIO_Init-GPIO-false-LL-true,3-MX_DMA_Init-DMA-false-LL-true,4-MX_SPI2_Init-SPI2-false-LL-true,5-MX_ADC_Init-ADC-false-LL-true +RCC.AHBFreq_Value=48000000 +RCC.APB1Freq_Value=48000000 +RCC.APB1TimFreq_Value=48000000 RCC.CECFreq_Value=32786.88524590164 +RCC.FCLKCortexFreq_Value=48000000 RCC.FamilyName=M +RCC.HCLKFreq_Value=48000000 +RCC.HSE_VALUE=24000000 RCC.HSICECFreq_Value=32786.88524590164 -RCC.IPParameters=CECFreq_Value,FamilyName,HSICECFreq_Value,PLLCLKFreq_Value,PLLMCOFreq_Value,TimSysFreq_Value,VCOOutput2Freq_Value -RCC.PLLCLKFreq_Value=16000000 -RCC.PLLMCOFreq_Value=16000000 -RCC.TimSysFreq_Value=8000000 -RCC.VCOOutput2Freq_Value=8000000 +RCC.I2SFreq_Value=48000000 +RCC.IPParameters=AHBFreq_Value,APB1Freq_Value,APB1TimFreq_Value,CECFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSICECFreq_Value,I2SFreq_Value,MCOFreq_Value,PLLCLKFreq_Value,PLLMCOFreq_Value,PLLSourceVirtual,SYSCLKFreq_VALUE,SYSCLKSource,TimSysFreq_Value,USART1Freq_Value,USART2Freq_Value,VCOOutput2Freq_Value +RCC.MCOFreq_Value=48000000 +RCC.PLLCLKFreq_Value=96000000 +RCC.PLLMCOFreq_Value=96000000 +RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSI48 +RCC.SYSCLKFreq_VALUE=48000000 +RCC.SYSCLKSource=RCC_SYSCLKSOURCE_HSI48 +RCC.TimSysFreq_Value=48000000 +RCC.USART1Freq_Value=48000000 +RCC.USART2Freq_Value=48000000 +RCC.VCOOutput2Freq_Value=48000000 SH.SharedAnalog_PB1.0=GPIO_Analog SH.SharedAnalog_PB1.1=ADC_IN9,IN9 SH.SharedAnalog_PB1.ConfNb=2 -SPI2.CalculateBaudRate=4.0 MBits/s +SPI2.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_2 +SPI2.CalculateBaudRate=24.0 MBits/s SPI2.DataSize=SPI_DATASIZE_8BIT SPI2.Direction=SPI_DIRECTION_2LINES -SPI2.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,DataSize +SPI2.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,DataSize,BaudRatePrescaler SPI2.Mode=SPI_MODE_MASTER SPI2.VirtualType=VM_MASTER VP_SYS_VS_Systick.Mode=SysTick