From d2691056bd129a0dfb98d9043c967584d1a2ae38 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Fri, 24 May 2024 20:39:22 +0800 Subject: [PATCH] BUG HERE --- Core/Src/stm32_lpm_if.c | 7 ++++--- LoRaWAN/App/lora_app.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index de7fd83..0530774 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -106,9 +106,10 @@ void PWR_EnterStopMode(void) { /* USER CODE BEGIN EnterStopMode_1 */ PME_OFF; - HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); // repeative error - HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All); - HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All); + //HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); // error bug here + HAL_GPIO_WritePin(GPIOA, GPIO_PIN_All, GPIO_PIN_RESET);// error bug here + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_All, GPIO_PIN_RESET); + HAL_GPIO_WritePin(GPIOC, GPIO_PIN_All, GPIO_PIN_RESET); /* USER CODE END EnterStopMode_1 */ HAL_SuspendTick(); diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index e464ae7..d878936 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -638,7 +638,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) #ifdef YUNHORN_STS_O5_ENABLED UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), CFG_SEQ_Prio_0); #endif - } + #ifdef STS_R1D UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), CFG_SEQ_Prio_0); #endif @@ -648,7 +648,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) HAL_Delay(20); LED_OFF; #endif - + } break; case BUT2_Pin: #if defined(STS_USE_STM32WLE5)