`firmware/defmt-itm`: Raise compile error on `armv6m`
@@ -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.
