Skip to content

Commit

Permalink
Merge pull request #59 from SergioGasquez/feat/esp-hal-0-21
Browse files Browse the repository at this point in the history
Update code to esp-hal 0.21 releases
  • Loading branch information
bjoernQ authored Oct 11, 2024
2 parents 2ff05c6 + 5e73a44 commit 6cf8b65
Show file tree
Hide file tree
Showing 35 changed files with 2,637 additions and 1,808 deletions.
391 changes: 226 additions & 165 deletions advanced/stack-overflow-detection/Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions advanced/stack-overflow-detection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
esp-hal = { version = "0.20.1", features = ["esp32c3"] }
esp-backtrace = { version = "0.14.0", features = ["esp32c3", "panic-handler", "exception-handler", "println"] }
esp-println = { version = "0.11.0", features = ["esp32c3"] }
esp-hal = { version = "0.21.0", features = ["esp32c3"] }
esp-backtrace = { version = "0.14.2", features = ["esp32c3", "panic-handler", "exception-handler", "println"] }
esp-println = { version = "0.12.0", features = ["esp32c3"] }
critical-section = "1.1.3"
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ use core::cell::RefCell;

use critical_section::Mutex;
use esp_backtrace as _;
use esp_hal::{
assist_debug::DebugAssist, clock::ClockControl, peripherals::Peripherals, prelude::*,
system::SystemControl,
};
use esp_hal::{assist_debug::DebugAssist, prelude::*};
use esp_println::println;

#[entry]
fn main() -> ! {
let peripherals = Peripherals::take();
let system = SystemControl::new(peripherals.SYSTEM);
let _ = ClockControl::boot_defaults(system.clock_control).freeze();
let peripherals = esp_hal::init(esp_hal::Config::default());

// get the debug assist driver
let mut da = DebugAssist::new(peripherals.ASSIST_DEBUG);
Expand Down
9 changes: 2 additions & 7 deletions advanced/stack-overflow-detection/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ use core::cell::RefCell;

use critical_section::Mutex;
use esp_backtrace as _;
use esp_hal::{
assist_debug::DebugAssist, clock::ClockControl, peripherals::Peripherals, prelude::*,
system::SystemControl,
};
use esp_hal::{assist_debug::DebugAssist, prelude::*};
use esp_println::println;

#[entry]
fn main() -> ! {
let peripherals = Peripherals::take();
let system = SystemControl::new(peripherals.SYSTEM);
let _ = ClockControl::boot_defaults(system.clock_control).freeze();
let peripherals = esp_hal::init(esp_hal::Config::default());

// get the debug assist driver
let da = DebugAssist::new(peripherals.ASSIST_DEBUG);
Expand Down
Loading

0 comments on commit 6cf8b65

Please sign in to comment.