소스 검색

ChibiOS/STM32: send remote wakeup.

tags/v2.9
flabbergast 8 년 전
부모
커밋
6def104530
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      tmk_core/protocol/chibios/usb_main.c

+ 5
- 1
tmk_core/protocol/chibios/usb_main.c 파일 보기

@@ -1036,7 +1036,11 @@ void send_remote_wakeup(USBDriver *usbp) {
chThdSleepMilliseconds(15);
USB0->CTL &= ~USBx_CTL_RESUME;
#endif /* KINETIS_USB_USE_USB0 */
#else /* K20x || KL2x */
#elif defined(STM32F0XX) /* K20x || KL2x */
STM32_USB->CNTR |= CNTR_RESUME;
chThdSleepMilliseconds(15);
STM32_USB->CNTR &= ~CNTR_RESUME;
#else /* STM32F0XX */
#warning Sending remote wakeup packet not implemented for your platform.
#endif /* K20x || KL2x */
}

Loading…
취소
저장