István Cserny / WakeUp_STM32

Dependents:   Lab04_Check_StandBy_os2 Lab04_wakeup_STM32

Files at this revision

API Documentation at this revision

Comitter:
cspista
Date:
Fri Nov 12 12:42:09 2021 +0000
Parent:
2:502051beeb95
Commit message:
Few typos were corrected

Changed in this revision

WakeUp_STM32.h Show annotated file Show diff for this revision Revisions of this file
--- a/WakeUp_STM32.h	Thu Nov 11 14:35:19 2021 +0000
+++ b/WakeUp_STM32.h	Fri Nov 12 12:42:09 2021 +0000
@@ -14,7 +14,12 @@
  *      Created:    September  21st, 2017
  *      Revised:    March      12th, 2020
  */
-
+/*
+ *  Modified for correcting few typos
+ *  by Istvan Cserny on Nov 11, 2021.
+ *  last revised: Nov 12, 2021.
+ */
+ 
 #include "mbed.h"
 
 /**
@@ -29,10 +34,10 @@
  * 
  * int main() {
  *     uint32_t loop_count = 1;
- *     ThisThread::sleep_for(1000);
+ *     wait(1);
  *     while(true) {
- *         myled = !my_led;
- *         if (++count > 4) {
+ *         myled = !myled;
+ *         if (++loop_count > 4) {
  *             WakeUp::standby_then_reset(30000);  // 30sec
  *             while(true) {;} // never executing this line
  *         }