aboutsummaryrefslogtreecommitdiff
path: root/src/power.h
diff options
context:
space:
mode:
authorDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-06-23 19:44:32 +0700
committerDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-06-23 19:44:32 +0700
commit86e6f0db4d8349a7efbd98ac5fe5453fb58bd82c (patch)
tree7bb91449ca4b586cf7739a6d727855338f3ab410 /src/power.h
parent8274cab154f198447f12028e1686bbe2a6de6ebd (diff)
feat: save received data from BLE to flash
Diffstat (limited to 'src/power.h')
-rw-r--r--src/power.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/power.h b/src/power.h
new file mode 100644
index 0000000..4d418a0
--- /dev/null
+++ b/src/power.h
@@ -0,0 +1,11 @@
+#ifndef __RESET_H__
+#define __RESET_H__
+
+static inline void reset_jump()
+{
+ asm volatile("j 0x00");
+}
+
+void poweroff();
+
+#endif /* __RESET_H__ */