Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Update esp-hal & esp-wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Apr 19, 2024
1 parent 0f90e50 commit 167adab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ esp-backtrace = { version = "0.11.0", features = [
"panic-handler",
"println",
] }
esp-hal = { version = "0.16.0", features = [ "{{ mcu }}" ] }
esp-hal = { version = "0.17.0", features = [ "{{ mcu }}" ] }
esp-println = { version = "0.9.0", features = ["{{ mcu }}", "log"] }
log = { version = "0.4.20" }
{% if alloc -%}
Expand All @@ -21,7 +21,7 @@ esp-alloc = { version = "0.3.0" }
{% if wifi -%}
embedded-svc = { version = "0.26.1", default-features = false, features = [] }
embedded-io = "0.6.1"
esp-wifi = { version = "0.4.0", features = [
esp-wifi = { version = "0.5.0", features = [
"{{ mcu }}",
"phy-enable-usb",
"utils",
Expand Down
6 changes: 3 additions & 3 deletions pre-script.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ let metadata = #{
wokwi_board: "board-esp32-devkit-c-v4",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks).timer0"
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks, None).timer0"
},
esp32s2: #{
wokwi_board: "board-esp32-s2-devkitm-1",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks).timer0"
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks, None).timer0"
},
esp32s3: #{
wokwi_board: "board-esp32-s3-devkitc-1",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks).timer0"
esp_wifi_timer: "timer::TimerGroup::new(peripherals.TIMG1, &clocks, None).timer0"
},

// RISC-V devices:
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![no_main]

use esp_backtrace as _;
use esp_hal::{clock::ClockControl, peripherals::Peripherals, prelude::*, Delay};
use esp_hal::{clock::ClockControl, peripherals::Peripherals, prelude::*, delay::Delay};

{% if alloc -%}
{{ alloc_snippet }}
Expand All @@ -14,7 +14,7 @@ fn main() -> ! {
let system = peripherals.SYSTEM.split();

let clocks = ClockControl::max(system.clock_control).freeze();
let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);

{%- if alloc %}
init_heap();
Expand All @@ -28,6 +28,6 @@ fn main() -> ! {

loop {
log::info!("Hello world!");
delay.delay_ms(500u32);
delay.delay(500.millis());
}
}

0 comments on commit 167adab

Please sign in to comment.