Description
I am implementing the Keyberon crate that uses stm32-usbd as a dependency and am struggling to get my firmware to wake-up my computer from suspend. Looking at other libraries, I believe this is implemented with register level access in the MCU.
This could be a trait from usb_device, but I don't think it is implemented in all micro controller USB devices. The Zephyr "Trait" like implementation is here.
Zephyr STM32 HAL Implementation
ChibiOS STM32 HAL Implementation
I do not believe this is satisfied with the current suspend
and resume
method as those manipulate the fsusp
bit of the cntr
register, but I believe a device sent wakeup to the host would be manipulating the resume
bit of the cntr
register.
Does this seem like something that could be implemented? Should it be stm32 specific or be an implemented trait?