---- ONLY WORKABLE METHOD SO FAR ---GPIO_DeInit before enterlowpower

This commit is contained in:
Yunhorn 2024-07-04 14:32:17 +08:00
parent c89fe472bc
commit bde1e189ff
3 changed files with 24482 additions and 24486 deletions

View File

@ -109,15 +109,15 @@ void PWR_EnterStopMode(void)
HAL_UART_DeInit(&huart2);
vcom_DeInit();
// method 01
//HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All);
//HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All);
//HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All);
// --> normal work
//method 02
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_All, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_All, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_All, GPIO_PIN_RESET);
//HAL_GPIO_WritePin(GPIOA, GPIO_PIN_All, GPIO_PIN_RESET);
//HAL_GPIO_WritePin(GPIOB, GPIO_PIN_All, GPIO_PIN_RESET);
//HAL_GPIO_WritePin(GPIOC, GPIO_PIN_All, GPIO_PIN_RESET);
// --- reboot in each interval re-join again and again
//method 03

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff