esp-rs / esp-wifi-sys

Wi-Fi and BT drivers packaged for integration into bare-metal esp-wifi.
Apache License 2.0
401 stars 94 forks source link

esp32c3 compile error with new path #376

Closed zrz4066 closed 12 months ago

zrz4066 commented 12 months ago

esp32c3 no_std, rustc 1.76.0-nightly (e9013ac0e 2023-12-05) https://github.com/esp-rs/esp-wifi.git#d46dfc4a

After add the crate esp-wifi= {git="https://github.com/esp-rs/esp-wifi.git",features = ["esp32c3", "wifi-logs", "wifi"] },there are some errros

error[E0599]: no method named cpu_intr_from_cpu_3 found for reference &esp32c3::system::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\timer\riscv.rs:74:14 73 / (&*SystemPeripheral::PTR) 74 .cpu_intr_from_cpu_3() -^^^^^^^^^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named cpu_intr_from_cpu_3 found for reference &esp32c3::system::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\timer\riscv.rs:92:14 91 / (&*SystemPeripheral::PTR) 92 .cpu_intr_from_cpu_3() -^^^^^^^^^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named cpu_int_enable found for struct esp32c3::interrupt_core0::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\wifi\os_adapter_esp32c3.rs:6:14 5 / (*peripherals::INTERRUPT_CORE0::PTR) 6 .cpu_int_enable() -^^^^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named cpu_int_enable found for struct esp32c3::interrupt_core0::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\wifi\os_adapter_esp32c3.rs:14:14 13 / (*peripherals::INTERRUPT_CORE0::PTR) 14 .cpu_int_enable() -^^^^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named dig_pwc found for reference &esp32c3::rtc_cntl::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\common_adapter\common_adapter_esp32c3.rs:42:14 41 / rtc_cntl 42 .dig_pwc() -^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named wifi_rst_en found for reference &esp32c3::apb_ctrl::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\common_adapter\common_adapter_esp32c3.rs:46:14 45 / syscon 46 .wifi_rst_en() -^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named wifi_rst_en found for reference &esp32c3::apb_ctrl::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\common_adapter\common_adapter_esp32c3.rs:49:14 48 / syscon 49 .wifi_rst_en() -^^^^^^^^^^^-- help: remove the arguments
_____ field, not a method
error[E0599]: no method named dig_iso found for reference &esp32c3::rtc_cntl::RegisterBlock in the current scope --> D:\Rust.cargo\git\checkouts\esp-wifi-836f3b2af57fa847\d46dfc4\esp-wifi\src\common_adapter\common_adapter_esp32c3.rs:53:14 52 / rtc_cntl 53 .dig_iso() -^^^^^^^-- help: remove the arguments
_____ field, not a method

图片 图片

### Tasks
bjoernQ commented 12 months ago

As discussed in #377 it's now recommended to use the published crate when using the published HAL