summaryrefslogtreecommitdiffstats
path: root/lock/util.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-15 18:43:49 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-15 20:46:46 +0800
commit065594d8b1344ed8110f7e7e1ff4b7281e8eb291 (patch)
tree45b520ad2a8219fbf313e403a0a592fdf7af83d9 /lock/util.h
parent18502ba0f60906d6fc886d85096d8c2eef9ca4a9 (diff)
downloadsmart-home-065594d8b1344ed8110f7e7e1ff4b7281e8eb291.tar.gz
Backend btns and debounce logic.
Diffstat (limited to 'lock/util.h')
-rw-r--r--lock/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lock/util.h b/lock/util.h
index 32dbcad..51a990c 100644
--- a/lock/util.h
+++ b/lock/util.h
@@ -10,6 +10,8 @@
#define WDLEN 32
+int is_btn_pressed(uint8_t pin, uint8_t btn);
+
void xor(const char *k, const char *s, char *d, uint8_t n);
#endif /* MY_UTIL_H */