usbx icon indicating copy to clipboard operation
usbx copied to clipboard

Suspend / resume support

Open BluesharkPD opened this issue 2 years ago • 4 comments

Hi i have a question. How to support suspend /resume and remote wakeup in RTOS mode. ?

BluesharkPD avatar Mar 07 '23 18:03 BluesharkPD

When device suspended it should setup wakeup event, close or suspend most of peripherals and clocks, then put device in power saving mode, the code is stopped until wakeup event occurs.

So in RTOS mode when suspended RTOS is not running since all code is stopped. When resumed the code just continues and RTOS is resumed.

xiaocq2001 avatar Mar 08 '23 02:03 xiaocq2001

Hi, Is there any advice to suspend and resume threadx API when callbacks invoked

BluesharkPD avatar Apr 06 '23 21:04 BluesharkPD

You can refer to https://github.com/azure-rtos/threadx/tree/master/utility/low_power.

xiaocq2001 avatar Apr 14 '23 05:04 xiaocq2001

Hi I'm using usbx in CDC mode. I'm getting the Suspend interrupt when the cable is unplugged, but the resume interrupt doesn't occur when the cable is plugged in. Has anyone experienced this or have any guidance?

robert-kau avatar Aug 02 '24 14:08 robert-kau