Page 1 of 1

Fix documentation for wakeup in demo usbcfg.c  Topic is solved

Posted: Mon Sep 10, 2018 2:40 am
by FXCoder
Fix comment for wakeup event...

Code: Select all

Index: AVR/RT-TEENSY2-USB/usbcfg.c
===================================================================
--- AVR/RT-TEENSY2-USB/usbcfg.c   (revision 12246)
+++ AVR/RT-TEENSY2-USB/usbcfg.c   (working copy)
@@ -280,7 +280,7 @@
   case USB_EVENT_WAKEUP:
     chSysLockFromISR();
 
-    /* Disconnection event on suspend.*/
+    /* Connection event on wakeup.*/
     sduWakeupHookI(&SDU1);
 
     chSysUnlockFromISR();
Index: STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/usbcfg.c
===================================================================
--- STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/usbcfg.c   (revision 12246)
+++ STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/usbcfg.c   (working copy)
@@ -299,7 +299,7 @@
   case USB_EVENT_WAKEUP:
     chSysLockFromISR();
 
-    /* Disconnection event on suspend.*/
+    /* Connection event on wakeup.*/
     sduWakeupHookI(&PORTAB_SDU1);
 
     chSysUnlockFromISR();
Index: STM32/RT-STM32-LWIP-FATFS-USB/src/usbcfg.c
===================================================================
--- STM32/RT-STM32-LWIP-FATFS-USB/src/usbcfg.c   (revision 12246)
+++ STM32/RT-STM32-LWIP-FATFS-USB/src/usbcfg.c   (working copy)
@@ -299,7 +299,7 @@
   case USB_EVENT_WAKEUP:
     chSysLockFromISR();
 
-    /* Disconnection event on suspend.*/
+    /* Connection event on wakep.*/
     sduWakeupHookI(&PORTAB_SDU1);
 
     chSysUnlockFromISR();
Index: STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/usbcfg.c
===================================================================
--- STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/usbcfg.c   (revision 12246)
+++ STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/usbcfg.c   (working copy)
@@ -298,7 +298,7 @@
   case USB_EVENT_WAKEUP:
     chSysLockFromISR();
 
-    /* Disconnection event on suspend.*/
+    /* Connection event on wakeup.*/
     sduWakeupHookI(&SDU1);
 
     chSysUnlockFromISR();
     
     

Re: Fix documentation for wakeup in demo usbcfg.c

Posted: Wed Sep 19, 2018 2:07 pm
by Giovanni
Fixed in trunk, there were dozens other instances.

Giovanni