Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code to esp-hal 0.21 releases #59

Merged
merged 9 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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