István Cserny / Mbed 2 deprecated Lab04_wakeup_STM32

Dependencies:   mbed WakeUp_STM32

Files at this revision

API Documentation at this revision

Comitter:
cspista
Date:
Thu Nov 11 14:51:50 2021 +0000
Commit message:
Final version

Changed in this revision

WakeUp_STM32.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 0ae81c915caf WakeUp_STM32.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WakeUp_STM32.lib	Thu Nov 11 14:51:50 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/cspista/code/WakeUp_STM32/#502051beeb95
diff -r 000000000000 -r 0ae81c915caf main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 11 14:51:50 2021 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "WakeUp_STM32.h"           // see at https://os.mbed.com/users/kenjiArai/code/WakeUp_STM32/
+
+DigitalOut myled(LED1);
+
+int main() {
+    uint32_t loop_count = 1;
+    while(true) {
+        // In run mode Imax = 44 mA
+        myled = !myled;
+        wait(0.25);
+        if (++loop_count > 4) {
+            WakeUp::standby_then_reset(30000);  // 30sec
+            // In standby mode I = 3.7 uA
+            while(true) {;} // never executing this line
+        }
+    }
+}
diff -r 000000000000 -r 0ae81c915caf mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 11 14:51:50 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file