aboutsummaryrefslogtreecommitdiff
path: root/system-clock/include/common.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-16 00:02:56 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-16 00:02:56 -0700
commit92c50db2b05818157d46e09f4dec4fa1e96f960b (patch)
treec264b9d183e9c69fb8434712347a5680a41edf3a /system-clock/include/common.h
parent6d3197d768bf13c1402c1305050ea355f8c79fec (diff)
downloadstm32l4-92c50db2b05818157d46e09f4dec4fa1e96f960b.tar.gz
stm32l4-92c50db2b05818157d46e09f4dec4fa1e96f960b.tar.bz2
stm32l4-92c50db2b05818157d46e09f4dec4fa1e96f960b.zip
able to set the clock speed in MHz.
Diffstat (limited to 'system-clock/include/common.h')
-rw-r--r--system-clock/include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/system-clock/include/common.h b/system-clock/include/common.h
index f58f179..6fc701c 100644
--- a/system-clock/include/common.h
+++ b/system-clock/include/common.h
@@ -9,5 +9,6 @@
#define bool int
#define PACKED __attribute__((packed))
+#define BIT(n) (1 << (n))
#endif /* COMMON_H */