diff options
| author | Milton Eduardo Sosa <31409391+snorkman88@users.noreply.github.com> | 2024-06-26 19:35:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 17:35:43 +0000 |
| commit | 35891f4559cb2ec90128530ebd0ea74a65421b7a (patch) | |
| tree | c47e6c8fb159c5c03c0d292f61393a1a54a76fc0 /examples/stm32f411_adc/Cargo.toml | |
| parent | 861a63dbe31f8c1062bbc9a7eca012370ac26d76 (diff) | |
Add ADC example for STM32F411 (#952)
* Add ADC example for STM32F411
* Update dependencies
* Update RTIC version
* example: f411-adc: prefer text over picture
* example: f411-adc: nit: typo
---------
Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'examples/stm32f411_adc/Cargo.toml')
| -rw-r--r-- | examples/stm32f411_adc/Cargo.toml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/stm32f411_adc/Cargo.toml b/examples/stm32f411_adc/Cargo.toml new file mode 100644 index 0000000..c1fb43d --- /dev/null +++ b/examples/stm32f411_adc/Cargo.toml @@ -0,0 +1,29 @@ +[workspace] + +[package] +authors = ["<Milton Sosa <milton.eduardo.sosa@gmail.com>"] +edition = "2018" +readme = "README.md" +name = "stm32f411_adc" +version = "0.1.0" + +[dependencies] +cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } +cortex-m-rt = "0.7.1" +rtic = {version = "2.1.1", features=["thumbv7-backend", "rtic-monotonics"]} +panic-halt = "0.2.0" +embedded-hal = "1.0.0" +defmt = "0.3.5" +defmt-rtt = { version = "0.4.0"} +rtic-sync = "1.0.2" + +[dependencies.stm32f4xx-hal] +version = "0.21.0" +features = ["stm32f411"] # replace the model of your microcontroller here + +# this lets you use `cargo fix`! +[[bin]] +name = "stm32f411_adc" +test = false +bench = false + |
