1
0
Fork 0
mirror of https://github.com/italicsjenga/rp-hal-boards.git synced 2025-01-12 13:31:29 +11:00

Add 'rt' feature ()

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
boards
feather_rp2040
pico
pico_explorer
pico_lipo_16mb
rp2040-hal

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

@ -12,4 +12,8 @@ license = "MIT OR Apache-2.0"
[dependencies]
cortex-m = "0.7.2"
rp2040-hal = { path = "../../rp2040-hal", version = "0.1.0" }
cortex-m-rt = { version = "0.6.14", optional = true }
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"]