diff options
author | Brian Cully <bjc@kublai.com> | 2019-08-11 19:01:34 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-08-11 19:01:34 -0400 |
commit | 7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2 (patch) | |
tree | 3ac13da04997361ddb688d2f666298d075aa14e2 /usb/src/macros.rs | |
parent | cceebb087a7a8afc41e0523f6e98be2301ff3af1 (diff) | |
download | bleusb-7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2.tar.gz bleusb-7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2.zip |
Move usb controller stuff to usb directory.
Diffstat (limited to 'usb/src/macros.rs')
-rw-r--r-- | usb/src/macros.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usb/src/macros.rs b/usb/src/macros.rs new file mode 100644 index 0000000..46d2d07 --- /dev/null +++ b/usb/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);} + }; + (_) => {}; +} |