Mcu.Package=LQFP64
Mcu.Pin0=PD0-OSC_IN
Mcu.Pin1=PD1-OSC_OUT
-Mcu.Pin2=PA4
-Mcu.Pin3=PA5
-Mcu.Pin4=PA6
-Mcu.Pin5=PA7
-Mcu.Pin6=PA13
-Mcu.Pin7=PA14
-Mcu.Pin8=VP_SYS_VS_Systick
-Mcu.PinsNb=9
+Mcu.Pin2=PC0
+Mcu.Pin3=PA4
+Mcu.Pin4=PA5
+Mcu.Pin5=PA6
+Mcu.Pin6=PA7
+Mcu.Pin7=PA13
+Mcu.Pin8=PA14
+Mcu.Pin9=VP_SYS_VS_Systick
+Mcu.PinsNb=10
Mcu.ThirdPartyNb=0
Mcu.UserConstants=
Mcu.UserName=STM32F103RETx
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
-NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+NVIC.MemoryManagement_IRQn=true\:0\:0\:true\:false\:true\:false\:false
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
PA7.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
PA7.Locked=true
PA7.Signal=GPIO_Output
+PC0.GPIOParameters=GPIO_Label
+PC0.GPIO_Label=KEY1
+PC0.Locked=true
+PC0.Signal=GPIO_Input
PCC.Checker=false
PCC.Line=STM32F103
PCC.MCU=STM32F103R(C-D-E)Tx
/* USER CODE END EFP */\r
\r
/* Private defines -----------------------------------------------------------*/\r
+#define KEY1_Pin GPIO_PIN_0\r
+#define KEY1_GPIO_Port GPIOC\r
#define LED1_Pin GPIO_PIN_4\r
#define LED1_GPIO_Port GPIOA\r
#define LED2_Pin GPIO_PIN_5\r
\r
/* GPIO Ports Clock Enable */\r
__HAL_RCC_GPIOD_CLK_ENABLE();\r
+ __HAL_RCC_GPIOC_CLK_ENABLE();\r
__HAL_RCC_GPIOA_CLK_ENABLE();\r
\r
/*Configure GPIO pin Output Level */\r
HAL_GPIO_WritePin(GPIOA, LED1_Pin|LED2_Pin|LED3_Pin|LED4_Pin, GPIO_PIN_RESET);\r
\r
+ /*Configure GPIO pin : PtPin */\r
+ GPIO_InitStruct.Pin = KEY1_Pin;\r
+ GPIO_InitStruct.Mode = GPIO_MODE_INPUT;\r
+ GPIO_InitStruct.Pull = GPIO_NOPULL;\r
+ HAL_GPIO_Init(KEY1_GPIO_Port, &GPIO_InitStruct);\r
+\r
/*Configure GPIO pins : PAPin PAPin PAPin PAPin */\r
GPIO_InitStruct.Pin = LED1_Pin|LED2_Pin|LED3_Pin|LED4_Pin;\r
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;\r