---method 03 --- GPIOWRITE-RESET enterstopmode
This commit is contained in:
parent
8bb06a05b4
commit
4b6b7119d5
|
@ -108,12 +108,24 @@ void PWR_EnterStopMode(void)
|
|||
/* USER CODE BEGIN EnterStopMode_1 */
|
||||
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);
|
||||
// --> 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);
|
||||
// --- reboot in each interval re-join again and again
|
||||
|
||||
//method 03
|
||||
HAL_GPIO_WritePin(GPIOA, 0x65FF, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(GPIOB, 0xFEC7, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(GPIOC, 0xDFFF, GPIO_PIN_RESET);
|
||||
|
||||
|
||||
/* USER CODE END EnterStopMode_1 */
|
||||
HAL_SuspendTick();
|
||||
/* Clear Status Flag before entering STOP/STANDBY Mode */
|
||||
|
|
|
@ -52,7 +52,7 @@ extern "C" {
|
|||
* Defines the application data transmission duty cycle. 10s, value in [ms].
|
||||
*/
|
||||
|
||||
#define APP_TX_DUTYCYCLE 120000
|
||||
#define APP_TX_DUTYCYCLE 30000
|
||||
|
||||
|
||||
/*!
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue