extras: add missing cfg to peripherals macro

This commit is contained in:
Dario Nieuwenhuis 2021-03-22 14:55:27 +01:00
parent a0511e6caa
commit 806ee120ba

View File

@ -7,6 +7,7 @@ macro_rules! peripherals {
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
pub struct $type { _private: () } pub struct $type { _private: () }
$(#[$cfg])?
impl embassy::util::Steal for $type { impl embassy::util::Steal for $type {
#[inline] #[inline]
unsafe fn steal() -> Self { unsafe fn steal() -> Self {