|
|
@@ -842,17 +842,11 @@ static void MX_GPIO_Init(void)
|
|
|
/*Configure GPIO pin Output Level */
|
|
|
HAL_GPIO_WritePin(PowerLED_GPIO_Port, PowerLED_Pin, GPIO_PIN_RESET);
|
|
|
|
|
|
- /*Configure GPIO pin : SOS_KEY_Pin */
|
|
|
- GPIO_InitStruct.Pin = SOS_KEY_Pin;
|
|
|
+ /*Configure GPIO pins : SOS_KEY_Pin JUGE_PIN_Pin */
|
|
|
+ GPIO_InitStruct.Pin = SOS_KEY_Pin|JUGE_PIN_Pin;
|
|
|
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
|
|
|
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
|
|
- HAL_GPIO_Init(SOS_KEY_GPIO_Port, &GPIO_InitStruct);
|
|
|
-
|
|
|
- /*Configure GPIO pin : JUGE_PIN_Pin */
|
|
|
- GPIO_InitStruct.Pin = JUGE_PIN_Pin;
|
|
|
- GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
|
|
- GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
|
- HAL_GPIO_Init(JUGE_PIN_GPIO_Port, &GPIO_InitStruct);
|
|
|
+ HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
|
|
|
|
|
/*Configure GPIO pin : POWER_ON_Pin */
|
|
|
GPIO_InitStruct.Pin = POWER_ON_Pin;
|