aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/build.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs
index 4abbf8d69..03d4383ac 100644
--- a/embassy-stm32/build.rs
+++ b/embassy-stm32/build.rs
@@ -532,7 +532,11 @@ fn main() {
532 match crate::pac::RCC.#fieldset_name().read().#field_name() { 532 match crate::pac::RCC.#fieldset_name().read().#field_name() {
533 #match_arms 533 #match_arms
534 #[allow(unreachable_patterns)] 534 #[allow(unreachable_patterns)]
535 _ => unreachable!(), 535 _ => panic!(
536 "attempted to use peripheral '{}' but its clock mux is not set to a valid \
537 clock. Change 'config.rcc.mux' to another clock.",
538 #peripheral
539 )
536 } 540 }
537 } 541 }
538 } 542 }