Expand description

An EmbeddedProfiler implementation that toggles the given pin.

This profiler is geared towards systems that have very limited resources and just want to profile a function via an oscilloscope or logic analyzer. The analyzer takes any GPIO that implements the OutputPin trait

Example Usage

 let ep_pin_toggle = cortex_m::singleton!(: ep_pin_toggle::EPPinToggle<MyPinError, MyPin> =
     ep_pin_toggle::EPPinToggle::new(pin)).unwrap();
 unsafe {
     embedded_profiling::set_profiler(ep_pin_toggle).unwrap();
 }
 // (...)
 embedded_profiling::profile("print_profile", || println!("Hello, world"));

Features

proc-macros

enables the proc-macros feature in embedded-profiling. Enables the embedded_profiling::profile_function procedural macro.

Structs

Implements EmbeddedProfiler by toggling the given pin.