aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-05-14 14:21:04 +0000
committerGitHub <[email protected]>2025-05-14 14:21:04 +0000
commitb9ed61cdd99be4a58a757a0eb32c1fa77a696d6a (patch)
treec098e44fe7c2a9907c022488abf23284334082be
parent870296fcd481806d925c0f0a7f5f856e090b42d1 (diff)
parentbe20c708fa7b099507c2027a8c5666b54f1e5723 (diff)
Merge pull request #4198 from turnaroundfactor/interrupt_docs
Interrupt Doc Comments
-rw-r--r--embassy-stm32/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs
index 3e84d3386..f8d09413d 100644
--- a/embassy-stm32/src/lib.rs
+++ b/embassy-stm32/src/lib.rs
@@ -173,8 +173,9 @@ pub use crate::_generated::interrupt;
173// developer note: this macro can't be in `embassy-hal-internal` due to the use of `$crate`. 173// developer note: this macro can't be in `embassy-hal-internal` due to the use of `$crate`.
174#[macro_export] 174#[macro_export]
175macro_rules! bind_interrupts { 175macro_rules! bind_interrupts {
176 ($vis:vis struct $name:ident { 176 ($(#[$outer:meta])* $vis:vis struct $name:ident {
177 $( 177 $(
178 $(#[$inner:meta])*
178 $(#[cfg($cond_irq:meta)])? 179 $(#[cfg($cond_irq:meta)])?
179 $irq:ident => $( 180 $irq:ident => $(
180 $(#[cfg($cond_handler:meta)])? 181 $(#[cfg($cond_handler:meta)])?
@@ -183,12 +184,14 @@ macro_rules! bind_interrupts {
183 )* 184 )*
184 }) => { 185 }) => {
185 #[derive(Copy, Clone)] 186 #[derive(Copy, Clone)]
187 $(#[$outer])*
186 $vis struct $name; 188 $vis struct $name;
187 189
188 $( 190 $(
189 #[allow(non_snake_case)] 191 #[allow(non_snake_case)]
190 #[no_mangle] 192 #[no_mangle]
191 $(#[cfg($cond_irq)])? 193 $(#[cfg($cond_irq)])?
194 $(#[$inner])*
192 unsafe extern "C" fn $irq() { 195 unsafe extern "C" fn $irq() {
193 $( 196 $(
194 $(#[cfg($cond_handler)])? 197 $(#[cfg($cond_handler)])?