Skip to content

lulf/embassy-template

Repository files navigation

embassy-template

Simple template to generate a embassy project for a few common boards. Make sure you've run cargo install cargo-generate before using.

STM32 chip choices and configurations are automatically updated from stm32-data-generated via scripts/update-chip-choices.py.

Usage

cargo generate --git https://github.com/lulf/embassy-template.git -d chip=<chip-name>

Then follow the instructions.

Add new chip choices

If you want to add a new chip choice, you can add it to the NON_STM32_CHIPS and NON_STM32_CONFIGS dictionaries in scripts/update-chip-choices.py.

Then run scripts/update-chip-choices.py to update cargo-generate.toml and pre-script.rhai, or let the GitHub Actions workflow do it automatically.

Read more about the auto-generation process in scripts/README.md.

About

A cargo-template for getting started with embassy

Resources

Stars

Watchers

Forks

Contributors 8