diff options
Diffstat (limited to 'embassy-nxp/Cargo.toml')
| -rw-r--r-- | embassy-nxp/Cargo.toml | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/embassy-nxp/Cargo.toml b/embassy-nxp/Cargo.toml index 56d00bfb2..625906183 100644 --- a/embassy-nxp/Cargo.toml +++ b/embassy-nxp/Cargo.toml | |||
| @@ -11,22 +11,50 @@ embassy-hal-internal = { version = "0.3.0", path = "../embassy-hal-internal", fe | |||
| 11 | embassy-sync = { version = "0.7.0", path = "../embassy-sync" } | 11 | embassy-sync = { version = "0.7.0", path = "../embassy-sync" } |
| 12 | defmt = { version = "1", optional = true } | 12 | defmt = { version = "1", optional = true } |
| 13 | log = { version = "0.4.27", optional = true } | 13 | log = { version = "0.4.27", optional = true } |
| 14 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } | ||
| 15 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } | ||
| 16 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true } | ||
| 14 | 17 | ||
| 15 | ## Chip dependencies | 18 | ## Chip dependencies |
| 16 | lpc55-pac = { version = "0.5.0", optional = true } | 19 | lpc55-pac = { version = "0.5.0", optional = true } |
| 20 | nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/i509VCB/nxp-pac", rev = "1e010dbe75ab0e14dd908e4646391403414c8a8e" } | ||
| 21 | |||
| 22 | imxrt-rt = { version = "0.1.7", optional = true, features = ["device"] } | ||
| 23 | |||
| 24 | [build-dependencies] | ||
| 25 | cfg_aliases = "0.2.1" | ||
| 26 | nxp-pac = { version = "0.1.0", git = "https://github.com/i509VCB/nxp-pac", rev = "1e010dbe75ab0e14dd908e4646391403414c8a8e", features = ["metadata"], optional = true } | ||
| 27 | proc-macro2 = "1.0.95" | ||
| 28 | quote = "1.0.15" | ||
| 17 | 29 | ||
| 18 | [features] | 30 | [features] |
| 19 | default = ["rt"] | 31 | default = ["rt"] |
| 20 | # Enable PACs as optional dependencies, since some chip families will use different pac crates. | 32 | # Enable PACs as optional dependencies, since some chip families will use different pac crates (temporarily). |
| 21 | rt = ["lpc55-pac?/rt"] | 33 | rt = ["lpc55-pac?/rt", "nxp-pac?/rt"] |
| 22 | 34 | ||
| 23 | ## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. | 35 | ## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. |
| 24 | defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"] | 36 | defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"] |
| 37 | |||
| 38 | log = ["dep:log"] | ||
| 39 | |||
| 40 | ## Use Periodic Interrupt Timer (PIT) as the time driver for `embassy-time`, with a tick rate of 1 MHz | ||
| 41 | time-driver-pit = ["_time_driver", "embassy-time?/tick-hz-1_000_000"] | ||
| 42 | |||
| 25 | ## Reexport the PAC for the currently enabled chip at `embassy_nxp::pac` (unstable) | 43 | ## Reexport the PAC for the currently enabled chip at `embassy_nxp::pac` (unstable) |
| 26 | unstable-pac = [] | 44 | unstable-pac = [] |
| 27 | # This is unstable because semver-minor (non-breaking) releases of embassy-nrf may major-bump (breaking) the PAC version. | 45 | # This is unstable because semver-minor (non-breaking) releases of embassy-nxp may major-bump (breaking) the PAC version. |
| 28 | # If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC. | 46 | # If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC. |
| 29 | # There are no plans to make this stable. | 47 | # There are no plans to make this stable. |
| 30 | 48 | ||
| 49 | ## internal use only | ||
| 50 | # | ||
| 51 | # This feature is unfortunately a hack around the fact that cfg_aliases cannot apply to the buildscript | ||
| 52 | # that creates the aliases. | ||
| 53 | _rt1xxx = [] | ||
| 54 | |||
| 55 | # A timer driver is enabled. | ||
| 56 | _time_driver = ["dep:embassy-time-driver", "dep:embassy-time-queue-utils"] | ||
| 57 | |||
| 31 | #! ### Chip selection features | 58 | #! ### Chip selection features |
| 32 | lpc55 = ["lpc55-pac"] | 59 | lpc55 = ["dep:lpc55-pac"] |
| 60 | mimxrt1011 = ["nxp-pac/mimxrt1011", "_rt1xxx", "dep:imxrt-rt"] | ||
