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

Add support for generating embassy/async projects #110

Closed
MabezDev opened this issue Sep 7, 2023 · 7 comments
Closed

Add support for generating embassy/async projects #110

MabezDev opened this issue Sep 7, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@MabezDev
Copy link
Member

MabezDev commented Sep 7, 2023

We should probably add an embassy_main macro for Xtensa to make this easier.

@MabezDev MabezDev added the enhancement New feature or request label Sep 7, 2023
@github-project-automation github-project-automation bot moved this to Todo in esp-rs Sep 7, 2023
@ctron
Copy link

ctron commented Dec 10, 2023

I would love to have an example/template with async, embassy, and esp.

@MabezDev
Copy link
Member Author

We have plenty of async examples in esp-hal, and esp-wifi. As well as some projects in awesome-esp-rust. Would be nice to support generation here though, but it gets a bit tricky with the number of options we have.

@ctron
Copy link

ctron commented Dec 11, 2023

We have plenty of async examples in esp-hal, and esp-wifi.

I was struggling a bit with the different options, compilation issues (around atomic-polyfil, portable-atomic, newer embassy versions, …). It took me a while, but in the end I got something going (with esp-hal from main branch). However, none of the examples seemed to work for me (due to various reasons).

I think it would be good to have a standalone example, which can be tested on a regular basis. And just forked/cloned to get started. And that feels pretty close to this repository.

@MabezDev
Copy link
Member Author

Yeah, we're going through a bit of churn at the moment due to some atomic changes, we're making a clean break and moving solely to portable atomic, but this will cause some issues when running mixed versions of git and old releases. We hope to have a release from esp-hal and esp-wifi soon to sort this.

@tommasoclini
Copy link

Has progress been made on this topic? I'd really like an official template with embassy support out of the box.

@SergioGasquez
Copy link
Member

Hi! We are moving from cargo-generate to our own generation tool, see #168. So, feel free to take a look at esp-generate, which supports embassy, but we are aware of a bug when using embassy and wifi/ble.

The tool is new, so we appreciate any feedback if you end up ussing it!

@tommasoclini
Copy link

Thank you, I'll take a look at it

@jessebraham jessebraham closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

5 participants