Skip to content

Commit

Permalink
HRTIM - Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Nov 9, 2024
1 parent bb961cb commit 2ff3d07
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 42 deletions.
4 changes: 0 additions & 4 deletions examples/hrtim/adc-trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/capture-dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/eev-comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/eev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
6 changes: 1 addition & 5 deletions examples/hrtim/flt-comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down Expand Up @@ -135,7 +131,7 @@ fn main() -> ! {
for _ in 0..5 {
//delay.delay(500_u32.millis());
info!(
"State: {}, comp: {}, is_fault_active: {}, pc1: {}",
"State: {:?}, comp: {}, is_fault_active: {}, pc1: {}",
out1.get_state(),
comp3.output(),
hr_control.fault_5.is_fault_active(),
Expand Down
6 changes: 1 addition & 5 deletions examples/hrtim/flt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down Expand Up @@ -108,7 +104,7 @@ fn main() -> ! {
loop {
for _ in 0..5 {
delay.delay(500_u32.millis());
info!("State: {}", out1.get_state());
info!("State: {:?}", out1.get_state());
}
if hr_control.fault_3.is_fault_active() {
hr_control.fault_3.clear_fault(); // Clear fault every 5s
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/hrtim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down
4 changes: 0 additions & 4 deletions examples/hrtim/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
mod utils;

use cortex_m_rt::entry;

use defmt_rtt as _; // global logger
use panic_probe as _;

use utils::logger::info;

#[entry]
Expand Down

0 comments on commit 2ff3d07

Please sign in to comment.