aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a7d399cd..5a17c9c5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,9 +34,16 @@
#![deny(rust_2018_idioms)]
#![deny(warnings)]
#![no_std]
+// async currently requires nightly
+#![cfg_attr(feature = "async", feature(const_fn))]
+#![cfg_attr(feature = "async", feature(type_alias_impl_trait))]
use core::ops::Sub;
+// currently requires nightly
+#[cfg(feature = "async")]
+pub mod async_util;
+
use cortex_m::{
interrupt::Nr,
peripheral::{CBP, CPUID, DCB, DWT, FPB, FPU, ITM, MPU, NVIC, SCB, TPIU},