[package]
edition = "2021"
name = "embassy-nrf-examples"
version = "0.1.0"
license = "MIT OR Apache-2.0"

[dependencies]
teleprobe-meta = "1"

embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt", ] }
embassy-executor = { version = "0.6.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "task-arena-size-16384", "integrated-timers"] }
embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt",  "defmt-timestamp-uptime"] }
embassy-nrf = { version = "0.2.0", path = "../../embassy-nrf", features = ["defmt",  "time-driver-rtc1", "gpiote", "unstable-pac"] }
embedded-io-async = { version = "0.6.1", features = ["defmt-03"] }
embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", ] }
embassy-net-esp-hosted = { version = "0.1.0", path = "../../embassy-net-esp-hosted", features = ["defmt"] }
embassy-net-enc28j60 = { version = "0.1.0", path = "../../embassy-net-enc28j60", features = ["defmt"] }
embedded-hal-async = { version = "1.0" }
embedded-hal-bus = { version = "0.1", features = ["async"] }
static_cell = "2"
perf-client = { path = "../perf-client" }

defmt = "0.3"
defmt-rtt = "0.4"

cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.0"
panic-probe = { version = "0.3", features = ["print-defmt"] }
portable-atomic = { version = "1.6.0" }

[features]
nrf51422 = ["embassy-nrf/nrf51",         "portable-atomic/unsafe-assume-single-core"]
nrf52832 = ["embassy-nrf/nrf52832",      "easydma"]
nrf52833 = ["embassy-nrf/nrf52833",      "easydma", "two-uarts"]
nrf52840 = ["embassy-nrf/nrf52840",      "easydma", "two-uarts"]
nrf5340  = ["embassy-nrf/nrf5340-app-s", "easydma", "two-uarts"]
nrf9160  = ["embassy-nrf/nrf9160-s",     "easydma", "two-uarts"]

easydma = []
two-uarts = []

[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = "fat"
opt-level = 's'
overflow-checks = false

# BEGIN TESTS
# Generated by gen_test.py. DO NOT EDIT.
[[bin]]
name = "buffered_uart"
path = "src/bin/buffered_uart.rs"
required-features = [ "easydma",]

[[bin]]
name = "buffered_uart_full"
path = "src/bin/buffered_uart_full.rs"
required-features = [ "easydma",]

[[bin]]
name = "buffered_uart_halves"
path = "src/bin/buffered_uart_halves.rs"
required-features = [ "two-uarts",]

[[bin]]
name = "buffered_uart_spam"
path = "src/bin/buffered_uart_spam.rs"
required-features = [ "two-uarts",]

[[bin]]
name = "ethernet_enc28j60_perf"
path = "src/bin/ethernet_enc28j60_perf.rs"
required-features = [ "nrf52840",]

[[bin]]
name = "gpio"
path = "src/bin/gpio.rs"
required-features = []

[[bin]]
name = "gpiote"
path = "src/bin/gpiote.rs"
required-features = []

[[bin]]
name = "timer"
path = "src/bin/timer.rs"
required-features = []

[[bin]]
name = "uart_halves"
path = "src/bin/uart_halves.rs"
required-features = [ "two-uarts",]

[[bin]]
name = "uart_split"
path = "src/bin/uart_split.rs"
required-features = [ "easydma",]

[[bin]]
name = "wifi_esp_hosted_perf"
path = "src/bin/wifi_esp_hosted_perf.rs"
required-features = [ "nrf52840",]

# END TESTS
