Add 'rt' feature (#53)

For the HAL, currently just passes the feature to the PAC.

Also pass the 'rt' feature through to the HAL for all the BSP crates.
This commit is contained in:
Andrea Nall 2021-07-07 04:33:36 -05:00 committed by GitHub
parent 614180eda3
commit 17f8a5ab99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 4 deletions

View file

@ -16,4 +16,4 @@ cortex-m-rt = { version = "0.6.14", optional = true }
[features]
default = ["rt"]
rt = ["cortex-m-rt"]
rt = ["cortex-m-rt","rp2040-hal/rt"]

View file

@ -13,3 +13,7 @@ license = "MIT OR Apache-2.0"
cortex-m = "0.7.2"
rp2040-hal = { path = "../../rp2040-hal", version = "0.1.0" }
cortex-m-rt = { version = "0.6.14", optional = true }
[features]
default = ["rt"]
rt = ["cortex-m-rt","rp2040-hal/rt"]

View file

@ -16,4 +16,4 @@ cortex-m-rt = { version = "0.6.14", optional = true }
[features]
default = ["rt"]
rt = ["cortex-m-rt"]
rt = ["cortex-m-rt","rp2040-hal/rt"]

View file

@ -16,4 +16,4 @@ cortex-m-rt = { version = "0.6.14", optional = true }
[features]
default = ["rt"]
rt = ["cortex-m-rt"]
rt = ["cortex-m-rt","rp2040-hal/rt"]

View file

@ -21,3 +21,6 @@ paste = "1.0"
cortex-m-rt = "0.6.14"
panic-halt = "0.2.0"
rp2040-boot2 = { git = "https://github.com/rp-rs/rp2040-boot2-rs", branch="main" }
[features]
rt = ["rp2040-pac/rt"]