Skip to content

Instantly share code, notes, and snippets.

@pyaillet
Created March 10, 2022 19:50
Show Gist options
  • Save pyaillet/6e5ea26a510f9f99e99edeadb7040ce4 to your computer and use it in GitHub Desktop.
Save pyaillet/6e5ea26a510f9f99e99edeadb7040ce4 to your computer and use it in GitHub Desktop.
cargo c --target=xtensa-esp32-espidf
Checking esp-idf-hal v0.33.1 (/Users/pyaillet/Projets/esp32/esp-idf-hal)
error[E0433]: failed to resolve: use of undeclared crate or module `rmt_item32_t__bindgen_ty_1__bindgen_ty_1`
--> src/rmt.rs:564:38
|
564 | let mut inner_item = rmt_item32_t__bindgen_ty_1__bindgen_ty_1::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `rmt_item32_t__bindgen_ty_1__bindgen_ty_1`
error[E0425]: cannot find function `rmt_set_tx_loop_count` in this scope
--> src/rmt.rs:451:23
|
451 | esp!(unsafe { rmt_set_tx_loop_count(C::channel(), looping.into()) })
| ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `rmt_set_tx_loop_mode`
|
::: /Users/pyaillet/Projets/esp32/esp-idf-hal/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-cb30886397b6c3b2/out/bindings.rs:95421:5
|
95421 | pub fn rmt_set_tx_loop_mode(channel: rmt_channel_t, loop_en: bool) -> esp_err_t;
| -------------------------------------------------------------------------------- similarly named function `rmt_set_tx_loop_mode` defined here
error[E0422]: cannot find struct, variant or union type `rmt_item32_t__bindgen_ty_1` in this scope
--> src/rmt.rs:486:35
|
486 | __bindgen_anon_1: rmt_item32_t__bindgen_ty_1 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a union with a similar name exists: `rmt_item32_s__bindgen_ty_1`
|
::: /Users/pyaillet/Projets/esp32/esp-idf-hal/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-cb30886397b6c3b2/out/bindings.rs:94825:1
|
94825 | pub union rmt_item32_s__bindgen_ty_1 {
| ------------------------------------ similarly named union `rmt_item32_s__bindgen_ty_1` defined here
error[E0422]: cannot find struct, variant or union type `rmt_item32_t__bindgen_ty_1` in this scope
--> src/rmt.rs:568:39
|
568 | __bindgen_anon_1: rmt_item32_t__bindgen_ty_1 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a union with a similar name exists: `rmt_item32_s__bindgen_ty_1`
|
::: /Users/pyaillet/Projets/esp32/esp-idf-hal/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-cb30886397b6c3b2/out/bindings.rs:94825:1
|
94825 | pub union rmt_item32_s__bindgen_ty_1 {
| ------------------------------------ similarly named union `rmt_item32_s__bindgen_ty_1` defined here
error[E0560]: struct `esp_idf_sys::rmt_tx_config_t` has no field named `loop_count`
--> src/rmt.rs:383:21
|
383 | loop_count,
| ^^^^^^^^^^ `esp_idf_sys::rmt_tx_config_t` does not have this field
|
= note: available fields are: `carrier_freq_hz`, `carrier_level`, `idle_level`, `carrier_duty_percent`, `carrier_en` ... and 2 others
Some errors have detailed explanations: E0422, E0425, E0433, E0560.
For more information about an error, try `rustc --explain E0422`.
error: could not compile `esp-idf-hal` due to 5 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment