aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-mspm0/src/lib.rs')
-rw-r--r--embassy-mspm0/src/lib.rs17
1 files changed, 11 insertions, 6 deletions
diff --git a/embassy-mspm0/src/lib.rs b/embassy-mspm0/src/lib.rs
index e8f5971d5..df2d83cc0 100644
--- a/embassy-mspm0/src/lib.rs
+++ b/embassy-mspm0/src/lib.rs
@@ -1,6 +1,11 @@
1#![no_std] 1#![no_std]
2// Doc feature labels can be tested locally by running RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc 2// Doc feature labels can be tested locally by running RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc
3#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide), doc(cfg_hide(doc, docsrs)))] 3#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide), doc(cfg_hide(doc, docsrs)))]
4#![cfg_attr(
5 docsrs,
6 doc = "<div style='padding:30px;background:#810;color:#fff;text-align:center;'><p>You might want to <a href='https://docs.embassy.dev/embassy-mspm0'>browse the `embassy-mspm0` documentation on the Embassy website</a> instead.</p><p>The documentation here on `docs.rs` is built for a single chip only, while on the Embassy website you can pick your exact chip from the top menu. Available peripherals and their APIs change depending on the chip.</p></div>\n\n"
7)]
8#![doc = include_str!("../README.md")]
4 9
5// This mod MUST go first, so that the others see its macros. 10// This mod MUST go first, so that the others see its macros.
6pub(crate) mod fmt; 11pub(crate) mod fmt;
@@ -35,11 +40,11 @@ pub mod mode {
35mod time_driver; 40mod time_driver;
36 41
37// Interrupt group handlers. 42// Interrupt group handlers.
38#[cfg_attr(feature = "mspm0c110x", path = "int_group/c110x.rs")] 43#[cfg_attr(mspm0c110x, path = "int_group/c110x.rs")]
39#[cfg_attr(feature = "mspm0g350x", path = "int_group/g350x.rs")] 44#[cfg_attr(mspm0g350x, path = "int_group/g350x.rs")]
40#[cfg_attr(feature = "mspm0g351x", path = "int_group/g351x.rs")] 45#[cfg_attr(mspm0g351x, path = "int_group/g351x.rs")]
41#[cfg_attr(feature = "mspm0l130x", path = "int_group/l130x.rs")] 46#[cfg_attr(mspm0l130x, path = "int_group/l130x.rs")]
42#[cfg_attr(feature = "mspm0l222x", path = "int_group/l222x.rs")] 47#[cfg_attr(mspm0l222x, path = "int_group/l222x.rs")]
43mod int_group; 48mod int_group;
44 49
45pub(crate) mod _generated { 50pub(crate) mod _generated {
@@ -109,7 +114,7 @@ pub fn init(_config: Config) -> Peripherals {
109 114
110 _generated::enable_group_interrupts(cs); 115 _generated::enable_group_interrupts(cs);
111 116
112 #[cfg(feature = "mspm0c110x")] 117 #[cfg(mspm0c110x)]
113 unsafe { 118 unsafe {
114 use crate::_generated::interrupt::typelevel::Interrupt; 119 use crate::_generated::interrupt::typelevel::Interrupt;
115 crate::interrupt::typelevel::GPIOA::enable(); 120 crate::interrupt::typelevel::GPIOA::enable();