mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Enable critical-section-impl by default only from board crates, not from hal
There are a lot of non-binary crates depending on rp2040-hal. That way, the default-features of rp2040-hal may be activated unintentionally through an indirect dependency. Therefore, a binary crate which wants to disable the `critical-section-impl` feature to provide its own one could have a hard time to do so. In contrast, the board support crates are usually only used by top-level binary crates. So disabling the default features on those should usually just work. Binary crates depending on rp2040-hal directly, which don't use any board support crate, might need to activate the feature manually. This is reasonable because those binary crates need to replicate some boilerplate from the board crates anyhow.
This commit is contained in:
parent
6ef6838132
commit
280de7cb99
|
@ -25,6 +25,7 @@ smart-leds = "0.3.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -25,6 +25,7 @@ nb = "1.0.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["rt", "boot2"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -18,7 +18,8 @@ embedded-hal = { version = "0.2.4", features = ["unproven"] }
|
|||
rp2040-boot2 = { version = "0.2.0", optional = true }
|
||||
|
||||
[features]
|
||||
default = ["rt", "boot2"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@ panic-halt= "0.2.0"
|
|||
embedded-hal ="0.2.5"
|
||||
|
||||
[features]
|
||||
default = ["rt", "boot2"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ nb = "1.0.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -24,6 +24,7 @@ nb = "1.0.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -25,6 +25,7 @@ embedded-hal ="0.2.5"
|
|||
nb = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -27,6 +27,7 @@ defmt = "0.3.0"
|
|||
defmt-rtt = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -28,6 +28,7 @@ arrayvec = { version="0.7.1", default-features=false }
|
|||
nb = "1.0.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -23,6 +23,7 @@ embedded-hal ="0.2.5"
|
|||
nb = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -28,6 +28,7 @@ defmt = "0.3.0"
|
|||
defmt-rtt = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -26,6 +26,7 @@ defmt = "0.3.0"
|
|||
defmt-rtt = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -43,7 +43,8 @@ defmt = "0.3.0"
|
|||
defmt-rtt = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
rp2040-e5 = ["rp2040-hal/rp2040-e5"]
|
||||
|
|
|
@ -23,6 +23,7 @@ embedded-hal ="0.2.5"
|
|||
nb = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -17,7 +17,8 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
|
|||
cortex-m-rt = { version = "0.7", optional = true }
|
||||
|
||||
[features]
|
||||
default = ["rt", "boot2"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ pio = "0.1.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -26,6 +26,7 @@ pio = "0.1.0"
|
|||
ws2812-pio = "0.3.0"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -37,6 +37,7 @@ pio = "0.2.0"
|
|||
pio-proc = "0.2.1"
|
||||
|
||||
[features]
|
||||
default = ["boot2", "rt"]
|
||||
default = ["boot2", "rt", "critical-section-impl"]
|
||||
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
||||
boot2 = ["rp2040-boot2"]
|
||||
rt = ["cortex-m-rt","rp2040-hal/rt"]
|
||||
|
|
|
@ -44,7 +44,6 @@ pio-proc = "0.2.0"
|
|||
dht-sensor = "0.2.1"
|
||||
|
||||
[features]
|
||||
default = ["critical-section-impl"]
|
||||
rt = ["rp2040-pac/rt"]
|
||||
rom-func-cache = []
|
||||
disable-intrinsics = []
|
||||
|
|
Loading…
Reference in a new issue