-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
87 lines (72 loc) · 2.18 KB
/
Cargo.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[package]
name = "bluepill_sensor"
version = "0.5.0"
authors = ["Michael Watzko <michael@watzko.de>"]
description = "Bluepill/stm32f103 with w5500 ethernet chip, OneWire interface and sensor_common communication"
keywords = ["arm", "cortex-m", "onewire", "ethernet"]
categories = ["embedded", "no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kellerkindt/bluepill_sensor"
edition = "2018"
[lib]
name = "bluepill_sensor"
path = "src/lib.rs"
[[bin]]
name = "bluepill_sensor"
path = "src/main.rs"
[profile.dev]
codegen-units = 1
incremental = false
[profile.release]
lto = true
debug = false
[dependencies]
embedded-hal = "0.2.3"
byteorder = { version = "1.2.1", default-features = false }
nb = "0.1.2"
panic-persist = "0.2.1"
cortex-m-rt = "0.6.12"
void = {version = "1.0.2", default-features = false }
cortex-m = "0.6.2"
bitflags = "1.2.1"
ads1x1x = { version = "0.2.1", optional = true }
pcf857x = { version = "0.3.0", optional = true }
arrayvec = { version = "0.5.1", optional = true, default-features = false, features = ["array-sizes-129-255"] }
embedded-nal = "0.6.0"
lm75 = { version = "0.1.2", optional = true }
solax-modbus = { path = "subtree.solax-modbus" }
[dependencies.stm32f1xx-hal]
version = "0.7.0"
features = ["stm32f103"]
# [dependencies.shared-bus]
# version = "0.1.4"
# features = ["cortexm"]
[dependencies.w5500]
path = "../w5500"
# features = ["no-chip-version-assertion"]
[dependencies.onewire]
path = "../onewire"
#[dependencies.pcd8544]
#path = "../pcd8544"
[dependencies.sensor_common]
path = "../sensor_common"
# [dependencies.stm32f103xx-hal]
# git = "https://github.com/japaric/stm32f103xx-hal.git"
# rev = "da4de59"
[features]
default = ["sntp"]
module-em = ["module-specified"]
module-env = ["module-specified"]
module-ps = ["module-specified", "ads1x1x", "pcf857x", "arrayvec"]
module-solax = ["module-specified"]
module-specified = []
board-rev-specified = []
board-rev-1 = ["board-rev-specified"]
board-rev-2 = ["board-rev-specified"]
board-rev-3-0 = ["board-rev-specified", "i2c2", "lm75"]
board-rev-3-1 = ["board-rev-3-0", "pcf857x"]
i2c2 = []
# this shall disable PC14/PC15 LEDs
rtc = []
sntp = []
demo-temp-lm75-pcf857x = ["board-rev-3-1", "pcf857x", "lm75"]