Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't enable the edge-executor feature #378

Closed
weiying-chen opened this issue Feb 10, 2024 · 2 comments
Closed

Can't enable the edge-executor feature #378

weiying-chen opened this issue Feb 10, 2024 · 2 comments

Comments

@weiying-chen
Copy link

weiying-chen commented Feb 10, 2024

I got this error:

the package `gpio` depends on `esp-idf-hal`, with features: `edge-executor` but `esp-idf-hal` does not have these features.

Note: gpio is my crate's name

According to this link, you can prepare esp-idf-hal to use edge-executor like this:

wake-from-isr = [] # Only enable if you plan to use the `edge-executor` crate

So I did that:

embassy = [
    "esp-idf-hal?/embassy-sync",
    "esp-idf-hal?/critical-section",
    "esp-idf-hal?/edge-executor", // edge-executor defined here
    "esp-idf-svc?/embassy-time-driver",
    "esp-idf-svc?/embassy-time-isr-queue",
]

[dependencies]
log = { version = "0.4.17", default-features = false }
esp-idf-sys = { version = "0.33", default-features = false }
esp-idf-hal = { version = "0.43", features = ["wake-from-isr"], optional = true, default-features = false } // wake-from-isr added here
esp-idf-svc = { version = "0.46", optional = true, default-features = false }
embedded-svc = { version = "0.25", optional = true, default-features = false }
anyhow = "=1.0.75"

But I'm still getting the same error.

@ivmarkov
Copy link
Collaborator

ivmarkov commented Feb 15, 2024

  • There is no feature edge-executor in esp-idf-hal anymore, as it is just not necessary
  • Only enable wake-from-isr after you have the edge-executor running otherwise, as this is just an optimization
  • Look at the first example on the edge-executor website. That's all you need to do to use edge-executor with esp-idf-svc/hal.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Feb 15, 2024
@weiying-chen
Copy link
Author

Thanks for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants