--- park here for low power CR2450 2.5V
This commit is contained in:
parent
f49230bf14
commit
76eec8577a
|
@ -95,13 +95,14 @@ void PWR_ExitOffMode(void)
|
|||
void PWR_EnterStopMode(void)
|
||||
{
|
||||
/* USER CODE BEGIN EnterStopMode_1 */
|
||||
#if 0
|
||||
#if 1
|
||||
HAL_UART_DeInit(&huart2);
|
||||
vcom_DeInit();
|
||||
HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All);
|
||||
HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All);
|
||||
HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All);
|
||||
#endif
|
||||
#if 0
|
||||
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||
|
@ -111,7 +112,7 @@ void PWR_EnterStopMode(void)
|
|||
__HAL_RCC_GPIOA_CLK_DISABLE();
|
||||
__HAL_RCC_GPIOB_CLK_DISABLE();
|
||||
__HAL_RCC_GPIOC_CLK_DISABLE();
|
||||
|
||||
#endif
|
||||
//HAL_GPIO_WritePin(GPIOA, GPIO_PIN_All, GPIO_PIN_RESET);
|
||||
//HAL_GPIO_WritePin(GPIOB, GPIO_PIN_All, GPIO_PIN_RESET);
|
||||
|
||||
|
|
|
@ -45,4 +45,5 @@ Pre-defines
|
|||
2024-05-24 GOOD R1D with higher power consumption at 30uA
|
||||
2024-05-28 GOOD R1D with lower power and TPS shutdown to 0V, yet, TOF range data incorrect. or not ranging at all
|
||||
2024-05-28 range distance same 1000mm
|
||||
2024-07-03 GPIO analog cannot be RESET in enterStopMode...only deinit
|
||||
******************************************************************************
|
||||
|
|
Loading…
Reference in New Issue