aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-dfu/src/lib.rs
blob: dcdb11b2a0a4a0b01d0a96cc34bbf777a9a4542f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]

pub mod consts;

#[cfg(feature = "bootloader")]
mod bootloader;
#[cfg(feature = "bootloader")]
pub use self::bootloader::*;

#[cfg(feature = "application")]
mod application;
#[cfg(feature = "application")]
pub use self::application::*;

#[cfg(any(all(feature = "bootloader", feature = "application"), not(any(feature = "bootloader", feature = "application"))))]
compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");