diff --git a/boards/adafruit-feather-rp2040/Cargo.toml b/boards/adafruit-feather-rp2040/Cargo.toml index eeea178..a78347b 100644 --- a/boards/adafruit-feather-rp2040/Cargo.toml +++ b/boards/adafruit-feather-rp2040/Cargo.toml @@ -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"] diff --git a/boards/adafruit-itsy-bitsy-rp2040/Cargo.toml b/boards/adafruit-itsy-bitsy-rp2040/Cargo.toml index 8b77722..f4e3044 100644 --- a/boards/adafruit-itsy-bitsy-rp2040/Cargo.toml +++ b/boards/adafruit-itsy-bitsy-rp2040/Cargo.toml @@ -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"] diff --git a/boards/adafruit-kb2040/Cargo.toml b/boards/adafruit-kb2040/Cargo.toml index 959db63..2922fba 100644 --- a/boards/adafruit-kb2040/Cargo.toml +++ b/boards/adafruit-kb2040/Cargo.toml @@ -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"] diff --git a/boards/adafruit-macropad/Cargo.toml b/boards/adafruit-macropad/Cargo.toml index 437f9ed..7ef090f 100644 --- a/boards/adafruit-macropad/Cargo.toml +++ b/boards/adafruit-macropad/Cargo.toml @@ -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"] diff --git a/boards/adafruit-qt-py-rp2040/Cargo.toml b/boards/adafruit-qt-py-rp2040/Cargo.toml index a018aec..988332e 100644 --- a/boards/adafruit-qt-py-rp2040/Cargo.toml +++ b/boards/adafruit-qt-py-rp2040/Cargo.toml @@ -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"] diff --git a/boards/adafruit-trinkey-qt2040/Cargo.toml b/boards/adafruit-trinkey-qt2040/Cargo.toml index 2e354f0..87b5175 100644 --- a/boards/adafruit-trinkey-qt2040/Cargo.toml +++ b/boards/adafruit-trinkey-qt2040/Cargo.toml @@ -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"] diff --git a/boards/arduino_nano_connect/Cargo.toml b/boards/arduino_nano_connect/Cargo.toml index 1aa369c..d45152d 100644 --- a/boards/arduino_nano_connect/Cargo.toml +++ b/boards/arduino_nano_connect/Cargo.toml @@ -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"] diff --git a/boards/pimoroni-badger2040/Cargo.toml b/boards/pimoroni-badger2040/Cargo.toml index 391f94e..83fce85 100644 --- a/boards/pimoroni-badger2040/Cargo.toml +++ b/boards/pimoroni-badger2040/Cargo.toml @@ -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"] diff --git a/boards/pimoroni-pico-explorer/Cargo.toml b/boards/pimoroni-pico-explorer/Cargo.toml index fd7cda0..61e6a4d 100644 --- a/boards/pimoroni-pico-explorer/Cargo.toml +++ b/boards/pimoroni-pico-explorer/Cargo.toml @@ -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"] diff --git a/boards/pimoroni-pico-lipo-16mb/Cargo.toml b/boards/pimoroni-pico-lipo-16mb/Cargo.toml index b68b6b3..9c925e9 100644 --- a/boards/pimoroni-pico-lipo-16mb/Cargo.toml +++ b/boards/pimoroni-pico-lipo-16mb/Cargo.toml @@ -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"] diff --git a/boards/pimoroni-plasma-2040/Cargo.toml b/boards/pimoroni-plasma-2040/Cargo.toml index 2a5abc5..c1764f5 100644 --- a/boards/pimoroni-plasma-2040/Cargo.toml +++ b/boards/pimoroni-plasma-2040/Cargo.toml @@ -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"] diff --git a/boards/pimoroni-tiny2040/Cargo.toml b/boards/pimoroni-tiny2040/Cargo.toml index e1e05f8..c82d8d1 100644 --- a/boards/pimoroni-tiny2040/Cargo.toml +++ b/boards/pimoroni-tiny2040/Cargo.toml @@ -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"] diff --git a/boards/rp-pico/Cargo.toml b/boards/rp-pico/Cargo.toml index 750fd4e..674febe 100644 --- a/boards/rp-pico/Cargo.toml +++ b/boards/rp-pico/Cargo.toml @@ -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"] diff --git a/boards/seeeduino-xiao-rp2040/Cargo.toml b/boards/seeeduino-xiao-rp2040/Cargo.toml index 4c7356c..e0fb62d 100644 --- a/boards/seeeduino-xiao-rp2040/Cargo.toml +++ b/boards/seeeduino-xiao-rp2040/Cargo.toml @@ -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"] diff --git a/boards/solderparty-rp2040-stamp/Cargo.toml b/boards/solderparty-rp2040-stamp/Cargo.toml index ab7ac5b..aaff12e 100644 --- a/boards/solderparty-rp2040-stamp/Cargo.toml +++ b/boards/solderparty-rp2040-stamp/Cargo.toml @@ -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"] diff --git a/boards/sparkfun-pro-micro-rp2040/Cargo.toml b/boards/sparkfun-pro-micro-rp2040/Cargo.toml index d7b155e..d4e646f 100644 --- a/boards/sparkfun-pro-micro-rp2040/Cargo.toml +++ b/boards/sparkfun-pro-micro-rp2040/Cargo.toml @@ -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"] diff --git a/boards/sparkfun-thing-plus-rp2040/Cargo.toml b/boards/sparkfun-thing-plus-rp2040/Cargo.toml index 9c71c5d..a63ed18 100644 --- a/boards/sparkfun-thing-plus-rp2040/Cargo.toml +++ b/boards/sparkfun-thing-plus-rp2040/Cargo.toml @@ -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"] diff --git a/boards/vcc-gnd-yd-rp2040/Cargo.toml b/boards/vcc-gnd-yd-rp2040/Cargo.toml index 567cb3c..0f274ec 100644 --- a/boards/vcc-gnd-yd-rp2040/Cargo.toml +++ b/boards/vcc-gnd-yd-rp2040/Cargo.toml @@ -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"] diff --git a/rp2040-hal/Cargo.toml b/rp2040-hal/Cargo.toml index ab5945e..c39ac50 100644 --- a/rp2040-hal/Cargo.toml +++ b/rp2040-hal/Cargo.toml @@ -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 = []