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

Commit

Permalink
Merge pull request #169 from SergioGasquez/feat/esp-hal-0-20
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
bjoernQ authored Sep 2, 2024
2 parents b681414 + 53de708 commit a229584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
esp-backtrace = { version = "0.13.0", features = [
esp-backtrace = { version = "0.14.0", features = [
"{{ mcu }}",
"exception-handler",
"panic-handler",
"println",
] }
esp-hal = { version = "0.19.0", features = [ "{{ mcu }}" ] }
esp-println = { version = "0.10.0", features = ["{{ mcu }}", "log"] }
esp-hal = { version = "0.20.1", features = [ "{{ mcu }}" ] }
esp-println = { version = "0.11.0", features = ["{{ mcu }}", "log"] }
log = { version = "0.4.21" }
{% if alloc -%}
esp-alloc = { version = "0.4.0" }
{% endif -%}
{% if wifi -%}
embedded-io = "0.6.1"
esp-wifi = { version = "0.7.1", features = [
esp-wifi = { version = "0.8.0", features = [
"{{ mcu }}",
"phy-enable-usb",
"utils",
Expand Down
11 changes: 2 additions & 9 deletions pre-script.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ let metadata = #{
wokwi_board: "board-esp32-devkit-c-v4",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::timg::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::timg::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::timg::TimerGroup::new(peripherals.TIMG1, &clocks, None).timer0"
},

// RISC-V devices:
Expand All @@ -25,28 +22,24 @@ let metadata = #{
wokwi_board: "",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0"
},
esp32c3: #{
extensions: "imc",
wokwi_board: "board-esp32-c3-devkitm-1",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0"
},
esp32c6: #{
extensions: "imac",
wokwi_board: "board-esp32-c6-devkitc-1",
esp_wifi_init: "Wifi",
esp_wifi_feature: "wifi",
esp_wifi_timer: "timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0"
},
esp32h2: #{
extensions: "imac",
wokwi_board: "board-esp32-h2-devkitm-1",
esp_wifi_init: "Ble",
esp_wifi_feature: "ble",
esp_wifi_timer: "timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0"
},
};

Expand Down Expand Up @@ -107,10 +100,10 @@ fn init_heap() {
// depends on: `peripherals` being in scope
variable::set("esp_wifi_snippet",
`
let timer = esp_hal::timer::PeriodicTimer::new(esp_hal::${meta.esp_wifi_timer}.into());
let timg0 = esp_hal::timer::timg::TimerGroup::new(peripherals.TIMG0, &clocks);
let _init = esp_wifi::initialize(
esp_wifi::EspWifiInitFor::${meta.esp_wifi_init},
timer,
timg0.timer0,
esp_hal::rng::Rng::new(peripherals.RNG),
peripherals.RADIO_CLK,
&clocks,
Expand Down

0 comments on commit a229584

Please sign in to comment.