Skip to content

Commit

Permalink
cleanup cortex-m BSP dependencies (#520)
Browse files Browse the repository at this point in the history
Most BSPs unnecessarily depend on cortex-m. Some use it in examples, so I moved it to dev-dependencies. Only a few actually use it in the BSP library.
  • Loading branch information
TDHolmes authored Oct 17, 2021
1 parent 9495af9 commit 515d4ef
Show file tree
Hide file tree
Showing 55 changed files with 41 additions and 72 deletions.
1 change: 1 addition & 0 deletions boards/arduino_mkr1000/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` (#510)

Expand Down
3 changes: 0 additions & 3 deletions boards/arduino_mkr1000/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
1 change: 1 addition & 0 deletions boards/arduino_mkrvidor4000/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- removed unnecessary dependency on `nb` (#510)

---
Expand Down
3 changes: 0 additions & 3 deletions boards/arduino_mkrvidor4000/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
1 change: 1 addition & 0 deletions boards/arduino_mkrzero/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/arduino_mkrzero/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand All @@ -25,6 +22,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/arduino_nano33iot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
* move `usbd-x` crates used only in examples to `[dev-dependencies]`
* removed unnecessary dependency on `nb` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/arduino_nano33iot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.7"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand All @@ -30,6 +27,7 @@ default-features = false
features = ["small_rng"]

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/atsame54_xpro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` and `panic_rtt` (#510)

Expand Down
3 changes: 0 additions & 3 deletions boards/atsame54_xpro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ edition = "2018"
repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
1 change: 1 addition & 0 deletions boards/circuit_playground_express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- removed unnecessary dependency on `nb` (#510)

---
Expand Down
3 changes: 0 additions & 3 deletions boards/circuit_playground_express/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.atsamd-hal]
version = "0.13"
default-features = false
Expand Down
1 change: 1 addition & 0 deletions boards/feather_m0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
* move `usbd-x` crates used only in examples to `[dev-dependencies]`
* removed unnecessary dependency on `nb` and `panic_rtt` (#510)
* Bump `cortex-m`/`cortex-m-rt` dependencies to fix a build issue
Expand Down
4 changes: 1 addition & 3 deletions boards/feather_m0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ readme = "README.md"
edition = "2018"
resolver = "2"

[dependencies]
cortex-m = "0.7"

[dependencies.cortex-m-rt]
version = "0.7"
optional = true
Expand All @@ -39,6 +36,7 @@ version = "=0.6.0-rc.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
cortex-m-semihosting = "0.3"
ssd1306 = "0.6.0"
Expand Down
1 change: 1 addition & 0 deletions boards/feather_m4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/feather_m4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
documentation = "https://atsamd-rs.github.io/atsamd/atsamd51j/feather_m4/"

[dependencies]
cortex-m = "0.7"

[dependencies.cortex-m-rt]
version = "0.7"
optional = true
Expand All @@ -26,6 +23,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/gemma_m0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- removed unnecessary dependency on `nb` (#510)

---
Expand Down
3 changes: 0 additions & 3 deletions boards/gemma_m0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
1 change: 1 addition & 0 deletions boards/grand_central_m4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` and `panic_rtt` (#510)

Expand Down
2 changes: 1 addition & 1 deletion boards/grand_central_m4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"

[dependencies]
cortex-m = "0.6"
ws2812-timer-delay = "0.3"

[dependencies.cortex-m-rt]
Expand All @@ -28,6 +27,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/itsybitsy_m0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` (#510)

Expand Down
2 changes: 1 addition & 1 deletion boards/itsybitsy_m0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"

[dependencies]
cortex-m = "0.6"
bitbang-hal = "0.3"
apa102-spi = "0.3"
smart-leds = "0.3"
Expand All @@ -28,6 +27,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
usbd-hid = "0.4"
panic-halt = "0.2"
Expand Down
1 change: 1 addition & 0 deletions boards/itsybitsy_m4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` and `panic_rtt` (#510)

Expand Down
2 changes: 1 addition & 1 deletion boards/itsybitsy_m4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"

[dependencies]
cortex-m = "0.6"
bitbang-hal = "0.3"
apa102-spi = "0.3"
smart-leds = "0.3"
Expand All @@ -31,6 +30,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/metro_m0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
* move `usbd-x` crates used only in examples to `[dev-dependencies]`
* removed unnecessary dependency on `nb` and `panic_rtt` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/metro_m0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.7"

[dependencies.cortex-m-rt]
version = "0.7"
optional = true
Expand All @@ -30,6 +27,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"
panic-semihosting = "0.5"
Expand Down
1 change: 1 addition & 0 deletions boards/metro_m4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/metro_m4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.7"

[dependencies.cortex-m-rt]
version = "0.7"
optional = true
Expand All @@ -26,6 +23,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-probe = "0.2"
panic-halt = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion boards/neo_trinkey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"
cortex-m-rt = { version = "0.6.12", optional = true }
usb-device = { version = "0.2", optional = true }
smart-leds = { version = "0.3.0", optional = true }
Expand All @@ -21,6 +20,7 @@ version = "0.13"
default-features = false

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
panic-halt = "0.2"

Expand Down
1 change: 1 addition & 0 deletions boards/p1am_100/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- move `usbd-x` crates used only in examples to `[dev-dependencies]`
- removed unnecessary dependency on `nb` and `panic_rtt` (#510)

Expand Down
4 changes: 1 addition & 3 deletions boards/p1am_100/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand All @@ -29,6 +26,7 @@ version = "0.2"
optional = true

[dev-dependencies]
cortex-m = "0.7"
usbd-serial = "0.1"
cortex-m-semihosting = "0.3"
drogue-nom-utils = "0.1"
Expand Down
1 change: 1 addition & 0 deletions boards/pfza_proto1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- removed unnecessary dependency on `nb` (#510)

---
Expand Down
3 changes: 0 additions & 3 deletions boards/pfza_proto1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
1 change: 1 addition & 0 deletions boards/pyportal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- remove extraneous `embedded-hal` dependencies from BSPs
- cleanup `cortex_m` dependency
- removed unnecessary dependency on `nb` and `panic_rtt` (#510)

---
Expand Down
3 changes: 0 additions & 3 deletions boards/pyportal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
edition = "2018"

[dependencies]
cortex-m = "0.6"

[dependencies.cortex-m-rt]
version = "0.6.12"
optional = true
Expand Down
Loading

0 comments on commit 515d4ef

Please sign in to comment.