diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-06-26 23:53:03 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-06-26 23:53:03 +0200 |
| commit | 065a1d097aedcb639996bb779445b7c694303d11 (patch) | |
| tree | cbdfc24a80f38dde4be29c4d790a01edec255646 | |
| parent | 397722c32877d1521584de004b49e815f29afe91 (diff) | |
cortex-m: document Interrupt changes depending on Cargo features.
| -rw-r--r-- | embassy-cortex-m/src/interrupt.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/embassy-cortex-m/src/interrupt.rs b/embassy-cortex-m/src/interrupt.rs index cd132076f..8a63b18b1 100644 --- a/embassy-cortex-m/src/interrupt.rs +++ b/embassy-cortex-m/src/interrupt.rs | |||
| @@ -205,6 +205,8 @@ const PRIO_MASK: u8 = 0xfe; | |||
| 205 | const PRIO_MASK: u8 = 0xff; | 205 | const PRIO_MASK: u8 = 0xff; |
| 206 | 206 | ||
| 207 | /// The interrupt priority level. | 207 | /// The interrupt priority level. |
| 208 | /// | ||
| 209 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 208 | #[cfg(feature = "prio-bits-0")] | 210 | #[cfg(feature = "prio-bits-0")] |
| 209 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 211 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 210 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 212 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -214,6 +216,8 @@ pub enum Priority { | |||
| 214 | } | 216 | } |
| 215 | 217 | ||
| 216 | /// The interrupt priority level. | 218 | /// The interrupt priority level. |
| 219 | /// | ||
| 220 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 217 | #[cfg(feature = "prio-bits-1")] | 221 | #[cfg(feature = "prio-bits-1")] |
| 218 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 222 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 219 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 223 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -224,6 +228,8 @@ pub enum Priority { | |||
| 224 | } | 228 | } |
| 225 | 229 | ||
| 226 | /// The interrupt priority level. | 230 | /// The interrupt priority level. |
| 231 | /// | ||
| 232 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 227 | #[cfg(feature = "prio-bits-2")] | 233 | #[cfg(feature = "prio-bits-2")] |
| 228 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 234 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 229 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 235 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -236,6 +242,8 @@ pub enum Priority { | |||
| 236 | } | 242 | } |
| 237 | 243 | ||
| 238 | /// The interrupt priority level. | 244 | /// The interrupt priority level. |
| 245 | /// | ||
| 246 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 239 | #[cfg(feature = "prio-bits-3")] | 247 | #[cfg(feature = "prio-bits-3")] |
| 240 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 248 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 241 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 249 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -252,6 +260,8 @@ pub enum Priority { | |||
| 252 | } | 260 | } |
| 253 | 261 | ||
| 254 | /// The interrupt priority level. | 262 | /// The interrupt priority level. |
| 263 | /// | ||
| 264 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 255 | #[cfg(feature = "prio-bits-4")] | 265 | #[cfg(feature = "prio-bits-4")] |
| 256 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 266 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 257 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 267 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -276,6 +286,8 @@ pub enum Priority { | |||
| 276 | } | 286 | } |
| 277 | 287 | ||
| 278 | /// The interrupt priority level. | 288 | /// The interrupt priority level. |
| 289 | /// | ||
| 290 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 279 | #[cfg(feature = "prio-bits-5")] | 291 | #[cfg(feature = "prio-bits-5")] |
| 280 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 292 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 281 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 293 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -316,6 +328,8 @@ pub enum Priority { | |||
| 316 | } | 328 | } |
| 317 | 329 | ||
| 318 | /// The interrupt priority level. | 330 | /// The interrupt priority level. |
| 331 | /// | ||
| 332 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 319 | #[cfg(feature = "prio-bits-6")] | 333 | #[cfg(feature = "prio-bits-6")] |
| 320 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 334 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 321 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 335 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -388,6 +402,8 @@ pub enum Priority { | |||
| 388 | } | 402 | } |
| 389 | 403 | ||
| 390 | /// The interrupt priority level. | 404 | /// The interrupt priority level. |
| 405 | /// | ||
| 406 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 391 | #[cfg(feature = "prio-bits-7")] | 407 | #[cfg(feature = "prio-bits-7")] |
| 392 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 408 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 393 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 409 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| @@ -524,6 +540,8 @@ pub enum Priority { | |||
| 524 | } | 540 | } |
| 525 | 541 | ||
| 526 | /// The interrupt priority level. | 542 | /// The interrupt priority level. |
| 543 | /// | ||
| 544 | /// NOTE: The contents of this enum differ according to the set `prio-bits-*` Cargo feature. | ||
| 527 | #[cfg(feature = "prio-bits-8")] | 545 | #[cfg(feature = "prio-bits-8")] |
| 528 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 546 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 529 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 547 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
