Advertisement
niedzwiedzw

Untitled

Feb 23rd, 2024
1,206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.07 KB | Food | 0 0
  1. diff --git a/.cargo/config.toml b/.cargo/config.toml
  2. index 7b52192..431674c 100644
  3. --- a/.cargo/config.toml
  4. +++ b/.cargo/config.toml
  5. @@ -1,4 +1,4 @@
  6. -[target.xtensa-esp32s3-none-elf]
  7. +[target.xtensa-esp32-none-elf]
  8.  runner = "espflash flash --monitor"
  9.  
  10.  
  11. @@ -14,7 +14,7 @@ rustflags = [
  12.    "link-arg=-nostartfiles",
  13.  ]
  14.  
  15. -target = "xtensa-esp32s3-none-elf"
  16. +target = "xtensa-esp32-none-elf"
  17.  
  18.  [unstable]
  19.  build-std = ["alloc", "core"]
  20. diff --git a/Cargo.toml b/Cargo.toml
  21. index 9a433f3..7095ac0 100644
  22. --- a/Cargo.toml
  23. +++ b/Cargo.toml
  24. @@ -7,23 +7,23 @@ license = "MIT OR Apache-2.0"
  25.  
  26.  
  27.  [dependencies]
  28. -esp32s3-hal = { version = "0.15.0", features = [
  29. +esp32-hal = { version = "0.18.0", features = [
  30.    "embassy",
  31.    "embassy-executor-thread",
  32.    "embassy-time-timg0",
  33.    "log",
  34.  ] }
  35.  esp-backtrace = { version = "0.11.0", features = [
  36. -  "esp32s3",
  37. +  "esp32",
  38.    "panic-handler",
  39.    "exception-handler",
  40.    "println",
  41.  ] }
  42. -esp-println = { version = "0.9.0", features = ["esp32s3", "log"] }
  43. +esp-println = { version = "0.9.0", features = ["esp32", "log"] }
  44.  log = { version = "0.4.20" }
  45.  esp-alloc = { version = "0.3.0" }
  46.  esp-wifi = { version = "0.3.0", features = [
  47. -  "esp32s3",
  48. +  "esp32",
  49.    "wifi",
  50.    "embassy-net",
  51.    "wifi-default",
  52. @@ -48,9 +48,9 @@ heapless = { version = "0.8.0", default-features = false }
  53.  embassy-executor = { version = "0.5.0", features = ["nightly"] }
  54.  embassy-time = "0.3.0"
  55.  esp-hal = { git = "https://github.com/esp-rs/esp-hal", rev = "9a95c0a", features = [
  56. -  "esp32s3",
  57. +  "esp32",
  58.  ] }
  59. -embassy-time-driver = "0.1.0"
  60. +embassy-time-driver = "0.1"
  61.  snafu = { version = "0.8.0", default-features = false, features = [
  62.    "rust_1_61",
  63.    "rust_1_65",
  64. diff --git a/src/main.rs b/src/main.rs
  65. index 5157f79..7de6cd4 100644
  66. --- a/src/main.rs
  67. +++ b/src/main.rs
  68. @@ -16,7 +16,7 @@ use embassy_time::{
  69.      Timer,
  70.  };
  71.  use embedded_svc::wifi::{ClientConfiguration, Configuration, Wifi};
  72. -use esp32s3_hal as hal;
  73. +use esp32_hal as hal;
  74.  use esp_backtrace as _;
  75.  use esp_println::{print, println};
  76.  use esp_wifi::{
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement