aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-04-15 10:08:25 +0000
committerGravatar GitHub <noreply@github.com> 2020-04-15 10:08:25 +0000
commite41b27331c70865b89b5584b13c0b469de30daff (patch)
treee796f24370f3ab75fcd542500e095a9501dff85d /src/lib.rs
parentf2a56ec9022ccf88186e125234e4e21fc585b8a8 (diff)
parent9c1a46749c4a2f7b88581a69cd405b712d227343 (diff)
downloadcortex-m-e41b27331c70865b89b5584b13c0b469de30daff.tar.gz
cortex-m-e41b27331c70865b89b5584b13c0b469de30daff.tar.zst
cortex-m-e41b27331c70865b89b5584b13c0b469de30daff.zip
Merge #181
181: Add cfg to Peripheral fields r=thejpster a=hug-dev The cfg conditional compilation attribute was only set on impl blocks of peripherals. This commit also sets it on the fields themselves to be more consistent. Also adds Armv8-M Baseline to the blacklist of the ITM peripheral (cf rule `FMQF` of the Armv8-M ARM). Co-authored-by: Hugues de Valon <hugues.devalon@arm.com>
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 276551c..aedb95a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -62,7 +62,7 @@ pub mod asm;
#[cfg(armv8m)]
pub mod cmse;
pub mod interrupt;
-#[cfg(not(armv6m))]
+#[cfg(all(not(armv6m), not(armv8m_base)))]
pub mod itm;
pub mod peripheral;
pub mod register;