feat(school_stm32): 添加基础的 STM32F103RCT6 项目结构
- 创建了项目的基本目录结构和文件 - 添加了 CMakeLists.txt 和 Makefile 构建配置 - 创建了 main.c 文件,实现了简单的 LED 闪烁和按键检测功能 - 集成了 SEGGER RTT 库 - 添加了 .gitignore 文件,排除了不必要的生成文件
This commit is contained in:
256
embedding.ioc
Normal file
256
embedding.ioc
Normal file
@ -0,0 +1,256 @@
|
||||
#MicroXplorer Configuration settings - do not modify
|
||||
CAD.formats=
|
||||
CAD.pinconfig=
|
||||
CAD.provider=
|
||||
File.Version=6
|
||||
GPIO.groupedBy=Group By Peripherals
|
||||
KeepUserPlacement=false
|
||||
Mcu.CPN=STM32F103RCT6
|
||||
Mcu.Family=STM32F1
|
||||
Mcu.IP0=NVIC
|
||||
Mcu.IP1=RCC
|
||||
Mcu.IP2=SYS
|
||||
Mcu.IPNb=3
|
||||
Mcu.Name=STM32F103R(C-D-E)Tx
|
||||
Mcu.Package=LQFP64
|
||||
Mcu.Pin0=PC14-OSC32_IN
|
||||
Mcu.Pin1=PC15-OSC32_OUT
|
||||
Mcu.Pin10=PB10
|
||||
Mcu.Pin11=PB11
|
||||
Mcu.Pin12=PB12
|
||||
Mcu.Pin13=PB13
|
||||
Mcu.Pin14=PB14
|
||||
Mcu.Pin15=PB15
|
||||
Mcu.Pin16=PC6
|
||||
Mcu.Pin17=PC7
|
||||
Mcu.Pin18=PC8
|
||||
Mcu.Pin19=PC9
|
||||
Mcu.Pin2=PD0-OSC_IN
|
||||
Mcu.Pin20=PA13
|
||||
Mcu.Pin21=PA14
|
||||
Mcu.Pin22=PC10
|
||||
Mcu.Pin23=PC11
|
||||
Mcu.Pin24=PD2
|
||||
Mcu.Pin25=PB3
|
||||
Mcu.Pin26=PB4
|
||||
Mcu.Pin27=PB9
|
||||
Mcu.Pin28=VP_SYS_VS_Systick
|
||||
Mcu.Pin3=PD1-OSC_OUT
|
||||
Mcu.Pin4=PC0
|
||||
Mcu.Pin5=PC1
|
||||
Mcu.Pin6=PC2
|
||||
Mcu.Pin7=PC3
|
||||
Mcu.Pin8=PC4
|
||||
Mcu.Pin9=PC5
|
||||
Mcu.PinsNb=29
|
||||
Mcu.ThirdPartyNb=0
|
||||
Mcu.UserConstants=
|
||||
Mcu.UserName=STM32F103RCTx
|
||||
MxCube.Version=6.14.1
|
||||
MxDb.Version=DB.6.0.141
|
||||
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.ForceEnableDMAVector=true
|
||||
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
|
||||
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false
|
||||
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
PA13.Mode=Serial_Wire
|
||||
PA13.Signal=SYS_JTMS-SWDIO
|
||||
PA14.Mode=Serial_Wire
|
||||
PA14.Signal=SYS_JTCK-SWCLK
|
||||
PB10.GPIOParameters=GPIO_Speed,PinState,GPIO_Label
|
||||
PB10.GPIO_Label=LCD_BL
|
||||
PB10.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB10.Locked=true
|
||||
PB10.PinState=GPIO_PIN_SET
|
||||
PB10.Signal=GPIO_Output
|
||||
PB11.GPIOParameters=GPIO_Speed,GPIO_Label
|
||||
PB11.GPIO_Label=LCD_CS
|
||||
PB11.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB11.Locked=true
|
||||
PB11.Signal=GPIO_Output
|
||||
PB12.GPIOParameters=GPIO_Speed,GPIO_Label
|
||||
PB12.GPIO_Label=LCD_DC
|
||||
PB12.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB12.Locked=true
|
||||
PB12.Signal=GPIO_Output
|
||||
PB13.GPIOParameters=GPIO_Speed,GPIO_Label
|
||||
PB13.GPIO_Label=LCD_RES
|
||||
PB13.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB13.Locked=true
|
||||
PB13.Signal=GPIO_Output
|
||||
PB14.GPIOParameters=GPIO_Speed,GPIO_Label
|
||||
PB14.GPIO_Label=LCD_SDA
|
||||
PB14.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB14.Locked=true
|
||||
PB14.Signal=GPIO_Output
|
||||
PB15.GPIOParameters=GPIO_Speed,GPIO_Label
|
||||
PB15.GPIO_Label=LCD_SCL
|
||||
PB15.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PB15.Locked=true
|
||||
PB15.Signal=GPIO_Output
|
||||
PB3.GPIOParameters=PinState,GPIO_Label
|
||||
PB3.GPIO_Label=LED_R
|
||||
PB3.Locked=true
|
||||
PB3.PinState=GPIO_PIN_SET
|
||||
PB3.Signal=GPIO_Output
|
||||
PB4.GPIOParameters=PinState,GPIO_Label
|
||||
PB4.GPIO_Label=LED_G
|
||||
PB4.Locked=true
|
||||
PB4.PinState=GPIO_PIN_SET
|
||||
PB4.Signal=GPIO_Output
|
||||
PB9.GPIOParameters=GPIO_Label
|
||||
PB9.GPIO_Label=SOND
|
||||
PB9.Locked=true
|
||||
PB9.Signal=GPIO_Output
|
||||
PC0.GPIOParameters=GPIO_Speed,PinState,GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultOutputPP
|
||||
PC0.GPIO_Label=KEY_L1
|
||||
PC0.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_PP
|
||||
PC0.GPIO_PuPd=GPIO_NOPULL
|
||||
PC0.GPIO_Speed=GPIO_SPEED_FREQ_LOW
|
||||
PC0.Locked=true
|
||||
PC0.PinState=GPIO_PIN_SET
|
||||
PC0.Signal=GPIO_Output
|
||||
PC1.GPIOParameters=GPIO_Speed,PinState,GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultOutputPP
|
||||
PC1.GPIO_Label=KEY_L2
|
||||
PC1.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_PP
|
||||
PC1.GPIO_PuPd=GPIO_NOPULL
|
||||
PC1.GPIO_Speed=GPIO_SPEED_FREQ_LOW
|
||||
PC1.Locked=true
|
||||
PC1.PinState=GPIO_PIN_SET
|
||||
PC1.Signal=GPIO_Output
|
||||
PC10.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC10.GPIO_Label=KEY_3
|
||||
PC10.GPIO_PuPd=GPIO_PULLUP
|
||||
PC10.Locked=true
|
||||
PC10.Signal=GPIO_Input
|
||||
PC11.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC11.GPIO_Label=KEY_4
|
||||
PC11.GPIO_PuPd=GPIO_PULLUP
|
||||
PC11.Locked=true
|
||||
PC11.Signal=GPIO_Input
|
||||
PC14-OSC32_IN.Mode=LSE-External-Oscillator
|
||||
PC14-OSC32_IN.Signal=RCC_OSC32_IN
|
||||
PC15-OSC32_OUT.Mode=LSE-External-Oscillator
|
||||
PC15-OSC32_OUT.Signal=RCC_OSC32_OUT
|
||||
PC2.GPIOParameters=GPIO_Speed,PinState,GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultOutputPP
|
||||
PC2.GPIO_Label=KEY_L3
|
||||
PC2.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_PP
|
||||
PC2.GPIO_PuPd=GPIO_NOPULL
|
||||
PC2.GPIO_Speed=GPIO_SPEED_FREQ_LOW
|
||||
PC2.Locked=true
|
||||
PC2.PinState=GPIO_PIN_SET
|
||||
PC2.Signal=GPIO_Output
|
||||
PC3.GPIOParameters=GPIO_Speed,PinState,GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultOutputPP
|
||||
PC3.GPIO_Label=KEY_L4
|
||||
PC3.GPIO_ModeDefaultOutputPP=GPIO_MODE_OUTPUT_PP
|
||||
PC3.GPIO_PuPd=GPIO_NOPULL
|
||||
PC3.GPIO_Speed=GPIO_SPEED_FREQ_LOW
|
||||
PC3.Locked=true
|
||||
PC3.PinState=GPIO_PIN_SET
|
||||
PC3.Signal=GPIO_Output
|
||||
PC4.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC4.GPIO_Label=KEY_H1
|
||||
PC4.GPIO_PuPd=GPIO_PULLUP
|
||||
PC4.Locked=true
|
||||
PC4.Signal=GPIO_Input
|
||||
PC5.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC5.GPIO_Label=KEY_H2
|
||||
PC5.GPIO_PuPd=GPIO_PULLUP
|
||||
PC5.Locked=true
|
||||
PC5.Signal=GPIO_Input
|
||||
PC6.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC6.GPIO_Label=KEY_H3
|
||||
PC6.GPIO_PuPd=GPIO_PULLUP
|
||||
PC6.Locked=true
|
||||
PC6.Signal=GPIO_Input
|
||||
PC7.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC7.GPIO_Label=KEY_H4
|
||||
PC7.GPIO_PuPd=GPIO_PULLUP
|
||||
PC7.Locked=true
|
||||
PC7.Signal=GPIO_Input
|
||||
PC8.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC8.GPIO_Label=KEY_1
|
||||
PC8.GPIO_PuPd=GPIO_PULLUP
|
||||
PC8.Locked=true
|
||||
PC8.Signal=GPIO_Input
|
||||
PC9.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PC9.GPIO_Label=KEY_2
|
||||
PC9.GPIO_PuPd=GPIO_PULLUP
|
||||
PC9.Locked=true
|
||||
PC9.Signal=GPIO_Input
|
||||
PD0-OSC_IN.Mode=HSE-External-Oscillator
|
||||
PD0-OSC_IN.Signal=RCC_OSC_IN
|
||||
PD1-OSC_OUT.Mode=HSE-External-Oscillator
|
||||
PD1-OSC_OUT.Signal=RCC_OSC_OUT
|
||||
PD2.GPIOParameters=PinState,GPIO_Label
|
||||
PD2.GPIO_Label=LED_B
|
||||
PD2.Locked=true
|
||||
PD2.PinState=GPIO_PIN_SET
|
||||
PD2.Signal=GPIO_Output
|
||||
PinOutPanel.RotationAngle=0
|
||||
ProjectManager.AskForMigrate=true
|
||||
ProjectManager.BackupPrevious=true
|
||||
ProjectManager.CompilerLinker=GCC
|
||||
ProjectManager.CompilerOptimize=6
|
||||
ProjectManager.ComputerToolchain=false
|
||||
ProjectManager.CoupleFile=true
|
||||
ProjectManager.CustomerFirmwarePackage=
|
||||
ProjectManager.DefaultFWLocation=true
|
||||
ProjectManager.DeletePrevious=true
|
||||
ProjectManager.DeviceId=STM32F103RCTx
|
||||
ProjectManager.FirmwarePackage=STM32Cube FW_F1 V1.8.6
|
||||
ProjectManager.FreePins=false
|
||||
ProjectManager.HalAssertFull=false
|
||||
ProjectManager.HeapSize=0x200
|
||||
ProjectManager.KeepUserCode=true
|
||||
ProjectManager.LastFirmware=true
|
||||
ProjectManager.LibraryCopy=1
|
||||
ProjectManager.MainLocation=Core/Src
|
||||
ProjectManager.NoMain=false
|
||||
ProjectManager.PreviousToolchain=
|
||||
ProjectManager.ProjectBuild=false
|
||||
ProjectManager.ProjectFileName=embedding.ioc
|
||||
ProjectManager.ProjectName=embedding
|
||||
ProjectManager.ProjectStructure=
|
||||
ProjectManager.RegisterCallBack=
|
||||
ProjectManager.StackSize=0x400
|
||||
ProjectManager.TargetToolchain=CMake
|
||||
ProjectManager.ToolChainLocation=
|
||||
ProjectManager.UAScriptAfterPath=
|
||||
ProjectManager.UAScriptBeforePath=
|
||||
ProjectManager.UnderRoot=false
|
||||
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true
|
||||
RCC.ADCFreqValue=36000000
|
||||
RCC.AHBFreq_Value=72000000
|
||||
RCC.APB1CLKDivider=RCC_HCLK_DIV2
|
||||
RCC.APB1Freq_Value=36000000
|
||||
RCC.APB1TimFreq_Value=72000000
|
||||
RCC.APB2Freq_Value=72000000
|
||||
RCC.APB2TimFreq_Value=72000000
|
||||
RCC.FCLKCortexFreq_Value=72000000
|
||||
RCC.FamilyName=M
|
||||
RCC.HCLKFreq_Value=72000000
|
||||
RCC.I2S2Freq_Value=72000000
|
||||
RCC.I2S3Freq_Value=72000000
|
||||
RCC.IPParameters=ADCFreqValue,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,I2S2Freq_Value,I2S3Freq_Value,MCOFreq_Value,PLLCLKFreq_Value,PLLMCOFreq_Value,PLLMUL,PLLSourceVirtual,SDIOFreq_Value,SDIOHCLKDiv2FreqValue,SYSCLKFreq_VALUE,SYSCLKSource,TimSysFreq_Value,USBFreq_Value,VCOOutput2Freq_Value
|
||||
RCC.MCOFreq_Value=72000000
|
||||
RCC.PLLCLKFreq_Value=72000000
|
||||
RCC.PLLMCOFreq_Value=36000000
|
||||
RCC.PLLMUL=RCC_PLL_MUL9
|
||||
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
|
||||
RCC.SDIOFreq_Value=72000000
|
||||
RCC.SDIOHCLKDiv2FreqValue=36000000
|
||||
RCC.SYSCLKFreq_VALUE=72000000
|
||||
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
|
||||
RCC.TimSysFreq_Value=72000000
|
||||
RCC.USBFreq_Value=72000000
|
||||
RCC.VCOOutput2Freq_Value=8000000
|
||||
VP_SYS_VS_Systick.Mode=SysTick
|
||||
VP_SYS_VS_Systick.Signal=SYS_VS_Systick
|
||||
board=custom
|
Reference in New Issue
Block a user