aboutsummaryrefslogtreecommitdiffstats
path: root/include/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 45533ba9..da238471 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -39,6 +39,8 @@
#define KiB (1024)
#define MiB (1024 * KiB)
+#define BIT(x) (1<<(x))
+
/* Assumes `n` and `a` are at most 64-bit wide (to avoid typeof() operator). */
#define ALIGN_DOWN(n, a) ((n) & ~((uint64_t)(a) - 1))