From 79d30b4c6b454b0b5676331207b72a8a3e0e4072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 28 May 2021 16:32:26 +0200 Subject: [PATCH] setup: cleanup --- src/hardware/configuration.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hardware/configuration.rs b/src/hardware/configuration.rs index 23121df..e2eb653 100644 --- a/src/hardware/configuration.rs +++ b/src/hardware/configuration.rs @@ -207,7 +207,6 @@ pub fn setup( } // Before being able to call any code in ITCM, load that code from flash. - log::info!("Loading ITCM"); load_itcm(); // Set up the system timer for RTIC scheduling. @@ -922,7 +921,7 @@ pub fn setup( #[cfg(feature = "pounder_v1_1")] let pounder_stamper = { - logger::info!("Pounder v1.1 or later"); + log::info!("Assuming Pounder v1.1 or later"); let etr_pin = gpioa.pa0.into_alternate_af3(); // The frequency in the constructor is dont-care, as we will modify the period + clock @@ -985,13 +984,13 @@ pub fn setup( digital_inputs, }; + // Enable the instruction cache. + core.SCB.enable_icache(); + // info!("Version {} {}", build_info::PKG_VERSION, build_info::GIT_VERSION.unwrap()); // info!("Built on {}", build_info::BUILT_TIME_UTC); // info!("{} {}", build_info::RUSTC_VERSION, build_info::TARGET); log::info!("setup() complete"); - // Enable the instruction cache. - core.SCB.enable_icache(); - (stabilizer, pounder) }