Merge pull request #444 from jannic/critical-section-default

Enable critical-section-impl by default only from board crates, not from hal
This commit is contained in:
Jan Niehusmann 2022-09-02 12:12:45 +02:00 committed by GitHub
commit e681b67d9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 36 additions and 19 deletions

View file

@ -25,6 +25,7 @@ smart-leds = "0.3.0"
ws2812-pio = "0.4.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"]

View file

@ -25,6 +25,7 @@ ws2812-pio = "0.4.0"
fugit = "0.3.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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -25,6 +25,7 @@ ws2812-pio = "0.4.0"
fugit = "0.3.5"
[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"]

View file

@ -24,6 +24,7 @@ ws2812-pio = "0.4.0"
fugit = "0.3.5"
[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"]

View file

@ -24,6 +24,7 @@ nb = "1.0"
fugit = "0.3.5"
[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"]

View file

@ -23,6 +23,7 @@ panic-halt= "0.2.0"
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"]

View file

@ -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"]

View file

@ -22,6 +22,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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -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"]

View file

@ -17,7 +17,8 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.6.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"]

View file

@ -26,6 +26,7 @@ ws2812-pio = "0.4.0"
fugit = "0.3.5"
[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"]

View file

@ -26,6 +26,7 @@ ws2812-pio = "0.4.0"
fugit = "0.3.5"
[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"]

View file

@ -28,6 +28,7 @@ ws2812-pio = "0.4.0"
pio = "0.2.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"]

View file

@ -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 = []