-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: Updates all Tier 1 BSP examples to use RTIC v2 and the RTC …
…monotonic where applicable * Ensures that all Tier 1 BSPs have all examples listed in Cargo.toml in alphabetical order. * Tier 1 BSP changes: * samd11_bare * Adds the `blinky_rtic` example. * metro_m0 * Updates the `blinky_rtic` example to use RTIC v2 and the RTC monotonic. * feather_m0 * Updates the `blinky_rtic` example to use the RTC monotonic. * Renames the `blinky_monotonic` example to `blinky_embassy`, which is more apt since they both use a monotonic. * Updates the `blinky_embassy` example to use the RTC monotonic as well, showing that this can be done despite it being a monotonic written for RTIC. * pygamer * Adds the `blinky_rtic` example. * metro_m4 * Adds the `blinky_rtic` example. * feather_m4 * Adds the `blinky_rtic` example. * Updates the `clocking_v2` example to use RTIC v2. * atsame54_xpro * Updates the `blinky_rtic` example to use RTIC v2 and the RTC monotonic. * Updates the `mcan` example to use RTIC v2 and the RTC monotonic.
- Loading branch information
Showing
23 changed files
with
796 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,60 @@ | ||
[package] | ||
name = "atsame54_xpro" | ||
version = "0.11.0" | ||
authors = [ | ||
"Karsten Große <[email protected]>", | ||
"John Little <[email protected]>" | ||
"Karsten Große <[email protected]>", | ||
"John Little <[email protected]>", | ||
] | ||
categories = ["embedded", "hardware-support", "no-std"] | ||
description = "Board Support crate for the SAM E54 Xplained Pro Evaluation Kit" | ||
edition = "2021" | ||
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] | ||
categories = ["embedded", "hardware-support", "no-std"] | ||
license = "MIT OR Apache-2.0" | ||
edition = "2021" | ||
repository = "https://github.com/atsamd-rs/atsamd" | ||
name = "atsame54_xpro" | ||
readme = "README.md" | ||
repository = "https://github.com/atsamd-rs/atsamd" | ||
version = "0.11.0" | ||
|
||
[dependencies.cortex-m-rt] | ||
version = "0.7" | ||
optional = true | ||
version = "0.7" | ||
|
||
[dependencies.cortex-m] | ||
version = "0.7" | ||
features = ["critical-section-single-core"] | ||
version = "0.7" | ||
|
||
[dependencies.atsamd-hal] | ||
default-features = false | ||
path = "../../hal" | ||
version = "0.21.0" | ||
default-features = false | ||
|
||
[dependencies.usb-device] | ||
version = "0.3.1" | ||
optional = true | ||
version = "0.3.1" | ||
|
||
[dev-dependencies] | ||
mcan = "0.2" | ||
cortex-m-rtic = "1.1" | ||
dwt-systick-monotonic = "1.1" | ||
panic-rtt-target = { version = "0.1", features = ["cortex-m"] } | ||
rtt-target = { version = "0.3", features = ["cortex-m"] } | ||
panic-rtt-target = {version = "0.1", features = ["cortex-m"]} | ||
rtic = {version = "2.1.2", features = ["thumbv7-backend"]} | ||
rtt-target = {version = "0.3", features = ["cortex-m"]} | ||
|
||
[features] | ||
default = ["rt", "atsamd-hal/same54p"] | ||
dma = ["atsamd-hal/dma"] | ||
max-channels = ["dma", "atsamd-hal/max-channels"] | ||
# Enable async support from atsamd-hal | ||
async = ["atsamd-hal/async"] | ||
can = ["atsamd-hal/can"] | ||
rt = ["cortex-m-rt", "atsamd-hal/same54p-rt"] | ||
usb = ["atsamd-hal/usb", "usb-device"] | ||
can = ["atsamd-hal/can"] | ||
# Enable rtic support from atsamd-hal | ||
rtic = ["atsamd-hal/rtic"] | ||
|
||
[[example]] | ||
name = "blinky_basic" | ||
|
||
[[example]] | ||
name = "blinky_rtic" | ||
required-features = ["rtic"] | ||
|
||
[[example]] | ||
name = "mcan" | ||
required-features = ["can"] | ||
required-features = ["can", "rtic"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.