about power state machine

master
bookshiyi 2020-08-21 17:44:58 +08:00
parent f707d2472b
commit 3dce34c854
2 changed files with 6 additions and 0 deletions

View File

@ -31,3 +31,9 @@
`stm32f1xx_hal_pcd.c文件内` `stm32f1xx_hal_pcd.c文件内`
`void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)函数内` `void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)函数内`
`HAL_PCD_SuspendCallback(hpcd) 代码段` 务必屏蔽,否则导致枚举失败,提示获取设备描述符失败。 `HAL_PCD_SuspendCallback(hpcd) 代码段` 务必屏蔽,否则导致枚举失败,提示获取设备描述符失败。
* 开关机
开机关机状态下长按电源按钮1s滴声后松开
关机:开机/DFU状态下长按电源按钮1s滴声后松开
DFU关机状态下先按住重启按钮然后按住电源按钮滴声后松开两个按钮

BIN
power_state_machine.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB