Skip to content

Commit

Permalink
Merge #368
Browse files Browse the repository at this point in the history
368: Raise compile error on armv6m r=jonas-schievink a=Urhengulas

Fixes #365 

Co-authored-by: Urhengulas <johann.hemmann@code.berlin>
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
  • Loading branch information
3 people authored Feb 10, 2021
2 parents d849ad4 + 6123072 commit 4cbf0b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/defmt-itm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ use core::{

use cortex_m::{interrupt, itm, peripheral::ITM, register};

#[cfg(armv6m)]
compile_error!("`defmt-itm` cannot be used on Cortex-M0(+) chips, because it requires an ITM peripheral");

static ENABLED: AtomicBool = AtomicBool::new(false);

/// Enables defmt logging over the ITM stimulus port 0.
Expand Down

0 comments on commit 4cbf0b9

Please sign in to comment.