# 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" rust-version = "1.75" name = "rp2040-hal" version = "0.10.2" authors = ["The rp-rs Developers"] description = "A Rust Embedded-HAL impl for the rp2040 microcontroller" homepage = "https://github.com/rp-rs/rp-hal" readme = "README.md" keywords = [ "embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal", ] categories = [ "embedded", "hardware-support", "no-std", "no-std::no-alloc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/rp-rs/rp-hal" [package.metadata.docs.rs] features = [ "rt", "rom-v2-intrinsics", "defmt", "rtic-monotonic", ] targets = ["thumbv6m-none-eabi"] [[example]] name = "gpio_irq_example" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "rtc_irq_example" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "rtc_sleep_example" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "pwm_irq_input" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "vector_table" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "adc_fifo_irq" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "adc_fifo_dma" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "adc" required-features = ["critical-section-impl"] [[example]] name = "adc_fifo_poll" required-features = ["critical-section-impl"] [[example]] name = "alloc" required-features = ["critical-section-impl"] [[example]] name = "blinky" required-features = ["critical-section-impl"] [[example]] name = "dht11" required-features = ["critical-section-impl"] [[example]] name = "dormant_sleep" required-features = [ "rt", "critical-section-impl", ] [[example]] name = "gpio_in_out" required-features = ["critical-section-impl"] [[example]] name = "i2c" required-features = ["critical-section-impl"] [[example]] name = "i2c_async" required-features = [ "critical-section-impl", "rt", ] [[example]] name = "i2c_async_cancelled" required-features = [ "critical-section-impl", "rt", "defmt", ] [[example]] name = "lcd_display" required-features = ["critical-section-impl"] [[example]] name = "mem_to_mem_dma" required-features = ["critical-section-impl"] [[example]] name = "multicore_fifo_blink" required-features = ["critical-section-impl"] [[example]] name = "multicore_polyblink" required-features = ["critical-section-impl"] [[example]] name = "pio_blink" required-features = ["critical-section-impl"] [[example]] name = "pio_dma" required-features = ["critical-section-impl"] [[example]] name = "pio_proc_blink" required-features = ["critical-section-impl"] [[example]] name = "pio_side_set" required-features = ["critical-section-impl"] [[example]] name = "pio_synchronized" required-features = ["critical-section-impl"] [[example]] name = "pwm_blink" required-features = ["critical-section-impl"] [[example]] name = "pwm_blink_embedded_hal_1" required-features = ["critical-section-impl"] [[example]] name = "rom_funcs" required-features = ["critical-section-impl"] [[example]] name = "rosc_as_system_clock" required-features = ["critical-section-impl"] [[example]] name = "spi" required-features = ["critical-section-impl"] [[example]] name = "spi_dma" required-features = ["critical-section-impl"] [[example]] name = "uart" required-features = ["critical-section-impl"] [[example]] name = "uart_dma" required-features = ["critical-section-impl"] [[example]] name = "watchdog" required-features = ["critical-section-impl"] [[example]] name = "gpio_dyn_pin_array" required-features = ["critical-section-impl"] [dependencies.bitfield] version = "0.14.0" [dependencies.chrono] version = "0.4" optional = true default-features = false [dependencies.cortex-m] version = "0.7.2" [dependencies.critical-section] version = "1.0.0" [dependencies.defmt] version = ">=0.2.0, <0.4" optional = true [dependencies.embedded-dma] version = "0.2.0" [dependencies.embedded-hal] version = "1.0.0" [dependencies.embedded-hal-async] version = "1.0.0" [dependencies.embedded-hal-nb] version = "1.0.0" [dependencies.embedded-io] version = "0.6.1" [dependencies.embedded_hal_0_2] version = "0.2.5" features = ["unproven"] package = "embedded-hal" [dependencies.frunk] version = "0.4.1" default-features = false [dependencies.fugit] version = "0.3.6" [dependencies.i2c-write-iter] version = "1.0.0" features = ["async"] optional = true [dependencies.itertools] version = "0.10.1" default-features = false [dependencies.nb] version = "1.0" [dependencies.paste] version = "1.0" [dependencies.pio] version = "0.2.0" [dependencies.rand_core] version = "0.6.3" [dependencies.rp2040-hal-macros] version = "0.1.0" [dependencies.rp2040-pac] version = "0.6.0" features = ["critical-section"] [dependencies.rtic-monotonic] version = "1.0.0" optional = true [dependencies.usb-device] version = "0.3" [dependencies.vcell] version = "0.1" [dependencies.void] version = "1.0.2" default-features = false [dev-dependencies.cortex-m-rt] version = "0.7" [dev-dependencies.cortex-m-rtic] version = "1.1.4" [dev-dependencies.defmt] version = "0.3" [dev-dependencies.defmt-rtt] version = "0.4.0" [dev-dependencies.dht-sensor] version = "0.2.1" [dev-dependencies.embedded-alloc] version = "0.5.1" [dev-dependencies.futures] version = "0.3.30" features = ["async-await"] default-features = false [dev-dependencies.hd44780-driver] version = "0.4.0" [dev-dependencies.nostd_async] version = "0.6.1" features = ["cortex_m"] [dev-dependencies.panic-halt] version = "0.2.0" [dev-dependencies.panic-probe] version = "0.3.1" features = ["print-defmt"] [dev-dependencies.pio-proc] version = "0.2.0" [dev-dependencies.rand] version = "0.8.5" default-features = false [dev-dependencies.rp2040-boot2] version = "0.3.0" [features] chrono = ["dep:chrono"] critical-section-impl = ["critical-section/restore-state-u8"] defmt = ["dep:defmt"] disable-intrinsics = [] i2c-write-iter = ["dep:i2c-write-iter"] rom-func-cache = [] rom-v2-intrinsics = [] rp2040-e5 = [] rt = ["rp2040-pac/rt"] rtic-monotonic = ["dep:rtic-monotonic"]