summaryrefslogtreecommitdiffstats
path: root/ble/src/macros.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-08-12 12:07:21 -0400
committerBrian Cully <bjc@kublai.com>2019-08-13 15:33:38 -0400
commitb3e48318159257db6233671f66667c5358f27267 (patch)
tree72e4103919e60bdd7db1268422d0ee0de455daf5 /ble/src/macros.rs
parent9cf9bb05f460a830384c211fa3ed94580de755df (diff)
downloadbleusb-b3e48318159257db6233671f66667c5358f27267.tar.gz
bleusb-b3e48318159257db6233671f66667c5358f27267.zip
Get RTC logger working.
Diffstat (limited to 'ble/src/macros.rs')
-rw-r--r--ble/src/macros.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ble/src/macros.rs b/ble/src/macros.rs
new file mode 100644
index 0000000..46d2d07
--- /dev/null
+++ b/ble/src/macros.rs
@@ -0,0 +1,15 @@
+#[macro_export]
+macro_rules! logln_now {
+ ($($arg:tt)*) => {
+ unsafe {crate::logger::write_fmt_now(format_args!($($arg)*), true);}
+ };
+ (_) => {};
+}
+
+#[macro_export]
+macro_rules! log_now {
+ ($($arg:tt)*) => {
+ unsafe {crate::logger::write_fmt_now(format_args!($($arg)*), false);}
+ };
+ (_) => {};
+}