Remove some nonsense
This commit is contained in:
parent
0ef00206d5
commit
c7b9c74bc7
@ -387,10 +387,7 @@ mod peripheral_macros {
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
#[non_exhaustive]
|
||||
#[allow(non_camel_case_types, clippy::upper_case_acronyms)]
|
||||
/// Represents a virtual peripheral with no associated hardware.
|
||||
///
|
||||
/// This struct is generated by the `create_peripheral!` macro when the peripheral
|
||||
/// is defined as virtual.
|
||||
#[doc = concat!(stringify!($name), " peripheral singleton")]
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
@ -417,8 +414,8 @@ mod peripheral_macros {
|
||||
impl $crate::private::Sealed for $name {}
|
||||
};
|
||||
|
||||
($([$enum_variant:ident])? $name:ident <= $base:ident) => {
|
||||
$crate::create_peripheral!($([$enum_variant])? $name <= virtual);
|
||||
($name:ident <= $base:ident) => {
|
||||
$crate::create_peripheral!($name <= virtual);
|
||||
|
||||
impl $name {
|
||||
#[doc = r"Pointer to the register block"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user