diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-03-22 14:55:27 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-29 00:58:58 +0200 |
| commit | 806ee120ba4186d3cefbcaf39b84b727089d9268 (patch) | |
| tree | 45115cdcc4bc871c8a8f873e5138b141f8274dda /embassy-extras | |
| parent | a0511e6caad8bbb4e41bed40283a92aaee7714bd (diff) | |
extras: add missing cfg to peripherals macro
Diffstat (limited to 'embassy-extras')
| -rw-r--r-- | embassy-extras/src/macros.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-extras/src/macros.rs b/embassy-extras/src/macros.rs index 22f93a1d3..a0464378e 100644 --- a/embassy-extras/src/macros.rs +++ b/embassy-extras/src/macros.rs | |||
| @@ -7,6 +7,7 @@ macro_rules! peripherals { | |||
| 7 | #[allow(non_camel_case_types)] | 7 | #[allow(non_camel_case_types)] |
| 8 | pub struct $type { _private: () } | 8 | pub struct $type { _private: () } |
| 9 | 9 | ||
| 10 | $(#[$cfg])? | ||
| 10 | impl embassy::util::Steal for $type { | 11 | impl embassy::util::Steal for $type { |
| 11 | #[inline] | 12 | #[inline] |
| 12 | unsafe fn steal() -> Self { | 13 | unsafe fn steal() -> Self { |
