Rename bootloader feature to dfu

This commit is contained in:
Kaitlyn Kenwell 2023-12-14 14:16:58 -05:00 committed by Dario Nieuwenhuis
parent 1c56523341
commit 11157ddd15
3 changed files with 6 additions and 6 deletions

View File

@ -27,6 +27,6 @@ embedded-storage = { version = "0.3.1" }
esp32c3-hal = { version = "0.13.0", optional = true, default-features = false } esp32c3-hal = { version = "0.13.0", optional = true, default-features = false }
[features] [features]
bootloader = [] dfu = []
application = [] application = []
defmt = ["dep:defmt"] defmt = ["dep:defmt"]

View File

@ -3,9 +3,9 @@ mod fmt;
pub mod consts; pub mod consts;
#[cfg(feature = "bootloader")] #[cfg(feature = "dfu")]
mod bootloader; mod bootloader;
#[cfg(feature = "bootloader")] #[cfg(feature = "dfu")]
pub use self::bootloader::*; pub use self::bootloader::*;
#[cfg(feature = "application")] #[cfg(feature = "application")]
@ -14,8 +14,8 @@ mod application;
pub use self::application::*; pub use self::application::*;
#[cfg(any( #[cfg(any(
all(feature = "bootloader", feature = "application"), all(feature = "dfu", feature = "application"),
not(any(feature = "bootloader", feature = "application")) not(any(feature = "dfu", feature = "application"))
))] ))]
compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");

View File

@ -17,7 +17,7 @@ cortex-m-rt = { version = "0.7" }
embedded-storage = "0.3.1" embedded-storage = "0.3.1"
embedded-storage-async = "0.4.0" embedded-storage-async = "0.4.0"
cfg-if = "1.0.0" cfg-if = "1.0.0"
embassy-usb-dfu = { version = "0.1.0", path = "../../../../embassy-usb-dfu", features = ["bootloader", "cortex-m"] } embassy-usb-dfu = { version = "0.1.0", path = "../../../../embassy-usb-dfu", features = ["dfu", "cortex-m"] }
embassy-usb = { version = "0.1.0", path = "../../../../embassy-usb", default-features = false } embassy-usb = { version = "0.1.0", path = "../../../../embassy-usb", default-features = false }
embassy-futures = { version = "0.1.1", path = "../../../../embassy-futures" } embassy-futures = { version = "0.1.1", path = "../../../../embassy-futures" }