Add time feature back and gate i2c on time
This commit is contained in:
		
							parent
							
								
									cd12c9cbce
								
							
						
					
					
						commit
						bfcca79c1e
					
				| @ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||||||
| src_base = "https://github.com/embassy-rs/embassy/blob/embassy-stm32-v$VERSION/embassy-stm32/src/" | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-stm32-v$VERSION/embassy-stm32/src/" | ||||||
| src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-stm32/src/" | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-stm32/src/" | ||||||
| 
 | 
 | ||||||
| features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "exti", "time-driver-any"] | features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "exti", "time-driver-any", "time"] | ||||||
| flavors = [ | flavors = [ | ||||||
|     { regex_feature = "stm32f0.*", target = "thumbv6m-none-eabi" }, |     { regex_feature = "stm32f0.*", target = "thumbv6m-none-eabi" }, | ||||||
|     { regex_feature = "stm32f1.*", target = "thumbv7m-none-eabi" }, |     { regex_feature = "stm32f1.*", target = "thumbv7m-none-eabi" }, | ||||||
| @ -33,7 +33,7 @@ flavors = [ | |||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| embassy-sync = { version = "0.3.0", path = "../embassy-sync" } | embassy-sync = { version = "0.3.0", path = "../embassy-sync" } | ||||||
| embassy-time = { version = "0.1.3", path = "../embassy-time" } | embassy-time = { version = "0.1.3", path = "../embassy-time", optional = true } | ||||||
| embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | ||||||
| embassy-hal-internal = {version = "0.1.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-4"] } | embassy-hal-internal = {version = "0.1.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-4"] } | ||||||
| embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" } | embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" } | ||||||
| @ -87,7 +87,7 @@ default = ["rt"] | |||||||
| rt = ["stm32-metapac/rt"] | rt = ["stm32-metapac/rt"] | ||||||
| 
 | 
 | ||||||
| ## Use [`defmt`](https://docs.rs/defmt/latest/defmt/) for logging | ## Use [`defmt`](https://docs.rs/defmt/latest/defmt/) for logging | ||||||
| defmt = ["dep:defmt", "bxcan/unstable-defmt", "embassy-sync/defmt", "embassy-embedded-hal/defmt", "embassy-hal-internal/defmt", "embedded-io-async?/defmt-03", "embassy-usb-driver?/defmt", "embassy-net-driver/defmt"] | defmt = ["dep:defmt", "bxcan/unstable-defmt", "embassy-sync/defmt", "embassy-embedded-hal/defmt", "embassy-hal-internal/defmt", "embedded-io-async?/defmt-03", "embassy-usb-driver?/defmt", "embassy-net-driver/defmt", "embassy-time?/defmt"] | ||||||
| 
 | 
 | ||||||
| exti = [] | exti = [] | ||||||
| low-power = [ "dep:embassy-executor", "embassy-executor/arch-cortex-m" ] | low-power = [ "dep:embassy-executor", "embassy-executor/arch-cortex-m" ] | ||||||
| @ -112,7 +112,7 @@ unstable-traits = ["embedded-hal-1", "dep:embedded-hal-nb"] | |||||||
| #! ## Time | #! ## Time | ||||||
| 
 | 
 | ||||||
| ## Enables additional driver features that depend on embassy-time | ## Enables additional driver features that depend on embassy-time | ||||||
| time = [] | time = ["dep:embassy-time"] | ||||||
| 
 | 
 | ||||||
| # Features starting with `_` are for internal use only. They're not intended | # Features starting with `_` are for internal use only. They're not intended | ||||||
| # to be enabled by other crates, and are not covered by semver guarantees. | # to be enabled by other crates, and are not covered by semver guarantees. | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ | |||||||
| use crate::interrupt; | use crate::interrupt; | ||||||
| 
 | 
 | ||||||
| #[cfg_attr(i2c_v1, path = "v1.rs")] | #[cfg_attr(i2c_v1, path = "v1.rs")] | ||||||
| #[cfg_attr(i2c_v2, path = "v2.rs")] | #[cfg_attr(all(i2c_v2, feature = "time"), path = "v2.rs")] | ||||||
| mod _version; | mod _version; | ||||||
| pub use _version::*; | pub use _version::*; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user