summaryrefslogtreecommitdiff
path: root/examples/Cargo.toml
blob: a9eedc5bd683e08c2f14802cdfa87abef645e48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
name = "nrf-softdevice-examples"
version = "0.1.0"

[features]
default = [
    "defmt-default",
    "ble-l2cap",
    "ble-gatt-server",
    "ble-gatt-client",
]
defmt-default = []
defmt-trace = []
defmt-debug = []
defmt-info = []
defmt-warn = []
defmt-error = []

ble-l2cap = ["nrf-softdevice/ble-l2cap"]
ble-gatt-server = ["nrf-softdevice/ble-gatt-server"]
ble-gatt-client = ["nrf-softdevice/ble-gatt-client"]

[dependencies]
embassy = { version = "0.1.0" }
embassy-nrf = { version = "0.1.0", features = [ "52840" ]}
cortex-m        = { version = "0.6.3" }
cortex-m-rt = "0.6.12"
cortex-m-rtic = { version = "0.5.5", optional = true }
defmt = "0.1.0"
defmt-rtt = "0.1.0"
panic-probe = "0.1.0"
nrf52840-hal    = { version = "0.11.0" }
nrf-softdevice = { version = "0.1.0", path = "../nrf-softdevice", features = ["defmt-trace", "nrf52840", "s140", "ble-peripheral", "ble-central"] }
nrf-softdevice-s140 = { version = "0.1.1", path = "../nrf-softdevice-s140" }
futures = { version = "0.3.5", default-features = false }
fixed = "1.2.0"


[[bin]]
name = "rtic"
required-features = ["cortex-m-rtic"]

[[bin]]
name = "ble_bas_peripheral"
required-features = ["ble-gatt-server"]

[[bin]]
name = "ble_bas_central"
required-features = ["ble-gatt-client"]

[[bin]]
name = "ble_peripheral_gattspam"
required-features = ["ble-gatt-client"]