imxrt-hal 0.5.13

Hardware abstraction layer for NXP i.MX RT microcontrollers.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "imxrt-hal"
version = "0.5.13"
authors = [
    "Tom Burdick <tom.burdick@electromatic.us>",
    "Ian McIntyre <ianpmcintyre@gmail.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Hardware abstraction layer for NXP i.MX RT microcontrollers.
"""
readme = "README.md"
keywords = [
    "imxrt",
    "nxp",
    "embedded",
    "no_std",
    "embedded-hal",
]
categories = [
    "embedded",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/imxrt-rs/imxrt-hal"

[package.metadata.docs.rs]
default-target = "thumbv7em-none-eabihf"
features = [
    "imxrt-ral/imxrt1062",
    "imxrt1060",
]

[features]
default = ["imxrt-usbd"]
eh02-unproven = []
imxrt1010 = ["imxrt-iomuxc/imxrt1010"]
imxrt1020 = ["imxrt-iomuxc/imxrt1020"]
imxrt1060 = ["imxrt-iomuxc/imxrt1060"]
imxrt1064 = ["imxrt-iomuxc/imxrt1060"]
imxrt1170 = ["imxrt-iomuxc/imxrt1170"]

[lib]
name = "imxrt_hal"
path = "src/lib.rs"

[[example]]
name = "async_dma_spi"
path = "examples/async_dma_spi.rs"
required-features = ["board/spi"]

[[example]]
name = "async_dma_uart"
path = "examples/async_dma_uart.rs"

[[example]]
name = "hal_clock_out"
path = "examples/hal_clock_out.rs"

[[example]]
name = "hal_gpio_input"
path = "examples/hal_gpio_input.rs"

[[example]]
name = "hal_gpt"
path = "examples/hal_gpt.rs"

[[example]]
name = "hal_i2c_lcd1602"
path = "examples/hal_i2c_lcd1602.rs"
required-features = ["board/lcd1602"]

[[example]]
name = "hal_i2c_mpu9250"
path = "examples/hal_i2c_mpu9250.rs"

[[example]]
name = "hal_led"
path = "examples/hal_led.rs"

[[example]]
name = "hal_logging"
path = "examples/hal_logging.rs"
required-features = ["board/imxrt-log"]

[[example]]
name = "hal_ocotp_fuse"
path = "examples/hal_ocotp_fuse.rs"

[[example]]
name = "hal_pit"
path = "examples/hal_pit.rs"

[[example]]
name = "hal_pwm"
path = "examples/hal_pwm.rs"

[[example]]
name = "hal_srtc"
path = "examples/hal_srtc.rs"

[[example]]
name = "hal_tempmon"
path = "examples/hal_tempmon.rs"
required-features = ["board/imxrt-log"]

[[example]]
name = "hal_trng"
path = "examples/hal_trng.rs"
required-features = ["board/imxrt-log"]

[[example]]
name = "hal_uart"
path = "examples/hal_uart.rs"

[[example]]
name = "rtic_defmt_rtt"
path = "examples/rtic_defmt_rtt.rs"

[[example]]
name = "rtic_dma_uart"
path = "examples/rtic_dma_uart.rs"

[[example]]
name = "rtic_gpio_input"
path = "examples/rtic_gpio_input.rs"

[[example]]
name = "rtic_gpt"
path = "examples/rtic_gpt.rs"

[[example]]
name = "rtic_logging"
path = "examples/rtic_logging.rs"
required-features = ["board/imxrt-log"]

[[example]]
name = "rtic_pit"
path = "examples/rtic_pit.rs"

[[example]]
name = "rtic_pwm"
path = "examples/rtic_pwm.rs"

[[example]]
name = "rtic_sai_pcm5102"
path = "examples/rtic_sai_pcm5102.rs"
required-features = [
    "board/imxrt-log",
    "board/sai",
    "board/teensy4",
]

[[example]]
name = "rtic_sai_sgtl5000"
path = "examples/rtic_sai_sgtl5000.rs"
required-features = [
    "board/imxrt-log",
    "board/sai",
    "board/teensy4",
]

[[example]]
name = "rtic_sai_wm8960"
path = "examples/rtic_sai_wm8960.rs"
required-features = [
    "board/imxrt-log",
    "board/sai",
]

[[example]]
name = "rtic_spi"
path = "examples/rtic_spi.rs"
required-features = ["board/spi"]

[[example]]
name = "rtic_spi_blocking"
path = "examples/rtic_spi_blocking.rs"
required-features = ["board/spi"]

[[example]]
name = "rtic_spi_controller"
path = "examples/rtic_spi_controller.rs"
required-features = ["board/spi"]

[[example]]
name = "rtic_spi_peripheral"
path = "examples/rtic_spi_peripheral.rs"
required-features = ["board/spi"]

[[example]]
name = "rtic_uart"
path = "examples/rtic_uart.rs"

[[example]]
name = "rtic_usb_keypress"
path = "examples/rtic_usb_keypress.rs"

[[example]]
name = "rtic_usb_mouse"
path = "examples/rtic_usb_mouse.rs"

[[example]]
name = "rtic_usb_serial"
path = "examples/rtic_usb_serial.rs"

[[example]]
name = "rtic_usb_test_class"
path = "examples/rtic_usb_test_class.rs"

[[test]]
name = "1010_trace_clk_rename"
path = "tests/1010_trace_clk_rename.rs"

[dependencies.bitflags]
version = "1.3"

[dependencies.cfg-if]
version = "1.0"

[dependencies.eh02]
version = "0.2.6"
package = "embedded-hal"

[dependencies.eh1]
version = "1.0.0"
package = "embedded-hal"

[dependencies.eio06]
version = "0.6.1"
package = "embedded-io"

[dependencies.fugit]
version = "0.3"

[dependencies.futures]
version = "0.3.30"
features = ["async-await"]
default-features = false

[dependencies.imxrt-dma]
version = "0.1"

[dependencies.imxrt-iomuxc]
version = "0.2.1"

[dependencies.imxrt-ral]
version = "0.5"

[dependencies.imxrt-usbd]
version = "0.2"
optional = true

[dependencies.nb]
version = "1"

[dependencies.ral-registers]
version = "0.1.3"

[dependencies.rand_core]
version = "0.5"
optional = true
default-features = false

[dependencies.void]
version = "1"
default-features = false

[dev-dependencies.cortex-m]
version = "0.7"

[dev-dependencies.defmt]
version = "0.3"

[dev-dependencies.imxrt-rt]
version = "0.1"

[dev-dependencies.log]
version = "0.4"

[dev-dependencies.menu]
version = "0.3.2"

[dev-dependencies.pin-utils]
version = "0.1"

[dev-dependencies.rtic]
version = "2.0"
features = ["thumbv7-backend"]

[dev-dependencies.usb-device]
version = "0.2"
features = ["test-class-high-speed"]

[dev-dependencies.usbd-hid]
version = "0.6"

[dev-dependencies.usbd-serial]
version = "0.1"

[dev-dependencies.wm8960]
version = "0.1.2"

[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dev-dependencies]

[profile.dev]
opt-level = 1
panic = "abort"

[profile.dev.build-override]
opt-level = 0
codegen-units = 256

[profile.release]
opt-level = "z"
lto = "fat"
debug = 2
panic = "abort"
overflow-checks = true

[profile.release.build-override]
opt-level = 0
codegen-units = 256