diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index aa377580..d8bac322 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml @@ -4,6 +4,14 @@ version = "0.1.0" authors = ["Dario Nieuwenhuis "] edition = "2018" +[package.metadata.embassy_docs] +features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "gpiote", "time-driver-rtc1"] +flavors = [ + { regex_feature = "nrf52.*", target = "thumbv7em-none-eabihf" }, + { regex_feature = "nrf53.*", target = "thumbv8m.main-none-eabihf" }, + { regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" }, +] + [features] # Enable nightly-only features diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index e45dfbac..116bba2a 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml @@ -5,6 +5,29 @@ authors = ["Dario Nieuwenhuis "] edition = "2018" resolver = "2" +[package.metadata.embassy_docs] +# TODO: sdmmc +# TODO: net +# TODO: subghz +features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "exti", "time-driver-any"] +flavors = [ + { regex_feature = "stm32f0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32f1.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32f2.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32f3.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32f42.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32f7.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32g0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32g4.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32h7.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32l0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32l1.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32l4.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32u5.*", target = "thumbv8m.main-none-eabihf" }, + { regex_feature = "stm32wb.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32wl.*", target = "thumbv7em-none-eabi" }, +] + [dependencies] embassy = { version = "0.1.0", path = "../embassy" } embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] } diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml index 9a5467c6..9b7e7207 100644 --- a/embassy/Cargo.toml +++ b/embassy/Cargo.toml @@ -5,6 +5,20 @@ authors = ["Dario Nieuwenhuis "] edition = "2018" resolver = "2" +[package.metadata.embassy_docs] +features = ["nightly", "defmt", "unstable-traits", "time", "time-tick-1mhz"] +flavors = [ + { name = "std", target = "x86_64-unknown-linux-gnu", features = ["std"] }, + { name = "wasm", target = "wasm32-unknown-unknown", features = ["wasm"] }, + { name = "thumbv6m-none-eabi", target = "thumbv6m-none-eabi", features = [] }, + { name = "thumbv7m-none-eabi", target = "thumbv7m-none-eabi", features = [] }, + { name = "thumbv7em-none-eabi", target = "thumbv7em-none-eabi", features = [] }, + { name = "thumbv7em-none-eabihf", target = "thumbv7em-none-eabihf", features = [] }, + { name = "thumbv8m.base-none-eabi", target = "thumbv8m.base-none-eabi", features = [] }, + { name = "thumbv8m.main-none-eabi", target = "thumbv8m.main-none-eabi", features = [] }, + { name = "thumbv8m.main-none-eabihf", target = "thumbv8m.main-none-eabihf", features = [] }, +] + [features] default = [] std = ["futures/std", "time", "time-tick-1mhz", "embassy-macros/std"] diff --git a/stm32-metapac/Cargo.toml b/stm32-metapac/Cargo.toml index c994797b..98249ec6 100644 --- a/stm32-metapac/Cargo.toml +++ b/stm32-metapac/Cargo.toml @@ -19,6 +19,27 @@ features = ["stm32h755zi-cm7", "pac", "metadata"] default-target = "thumbv7em-none-eabihf" targets = [] +[package.metadata.embassy_docs] +features = ["pac", "metadata"] +flavors = [ + { regex_feature = "stm32f0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32f1.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32f2.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32f3.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32f4.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32f7.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32g0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32g4.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32h7.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32l0.*", target = "thumbv6m-none-eabi" }, + { regex_feature = "stm32l1.*", target = "thumbv7m-none-eabi" }, + { regex_feature = "stm32l4.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32l5.*", target = "thumbv8m.main-none-eabihf" }, + { regex_feature = "stm32u5.*", target = "thumbv8m.main-none-eabihf" }, + { regex_feature = "stm32wb.*", target = "thumbv7em-none-eabi" }, + { regex_feature = "stm32wl.*", target = "thumbv7em-none-eabi" }, +] + [dependencies] cortex-m = "0.7.3" cortex-m-rt = { version = ">=0.6.15,<0.8", optional = true }