mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 13:55:23 +01:00
Add example for STM32F411 with HW & SW tasks communicating via MPSC channel (#953)
* Add example with HW & SW tasks communicating via MPSC channel * example: f411-adc-mpcsc: nit: typos * example: f411-adc-mpsc: prefer text over picture --------- Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local> Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
This commit is contained in:
parent
35891f4559
commit
624f643a97
7 changed files with 1068 additions and 0 deletions
30
examples/stm32f411_adc_and_mpsc_channel/Cargo.toml
Normal file
30
examples/stm32f411_adc_and_mpsc_channel/Cargo.toml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[workspace]
|
||||
|
||||
[package]
|
||||
authors = ["<Milton Sosa <milton.eduardo.sosa@gmail.com>"]
|
||||
edition = "2018"
|
||||
readme = "README.md"
|
||||
name = "stm32f411_adc_and_mpsc_channel"
|
||||
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"]}
|
||||
rtic-monotonics = { version = "2.0.1", features = ["cortex-m-systick"]}
|
||||
panic-halt = "0.2.0"
|
||||
embedded-hal = "1.0.0"
|
||||
defmt = "0.3.5"
|
||||
defmt-rtt = { version = "0.4.1"}
|
||||
rtic-sync = "1.3.0"
|
||||
|
||||
[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_and_mpsc_channel"
|
||||
test = false
|
||||
bench = false
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue