2020-08-07 13:36:00 +08:00
|
|
|
[package]
|
|
|
|
authors = ["occheung"]
|
|
|
|
edition = "2018"
|
|
|
|
readme = "README.md"
|
2020-08-10 18:06:15 +08:00
|
|
|
name = "firmware"
|
2020-08-07 13:36:00 +08:00
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
panic-halt = "0.2.0"
|
|
|
|
cortex-m = "0.6.2"
|
|
|
|
cortex-m-rt = "0.6.12"
|
2020-08-11 00:07:07 +08:00
|
|
|
embedded-hal = "0.2.4"
|
2020-09-07 14:05:13 +08:00
|
|
|
stm32h7xx-hal = {version = "0.7.1", features = [ "stm32h743v", "rt", "unproven", "ethernet", "phy_lan8742a" ] }
|
2020-09-10 10:29:35 +08:00
|
|
|
smoltcp = { version = "0.6.0", default-features = false, features = [ "ethernet", "proto-ipv4", "proto-ipv6", "socket-tcp", "log" ] }
|
2020-08-07 13:36:00 +08:00
|
|
|
nb = "1.0.0"
|
2020-09-03 17:41:27 +08:00
|
|
|
|
2020-09-01 10:21:55 +08:00
|
|
|
embedded-nal = "0.1.0"
|
2020-09-15 12:17:42 +08:00
|
|
|
minimq = { git = "https://github.com/quartiq/minimq.git", branch = "master" }
|
2020-09-23 14:56:15 +08:00
|
|
|
heapless = "0.5.6"
|
2020-09-16 12:05:45 +08:00
|
|
|
arrayvec = { version = "0.5.1", default-features = false, features = [ "array-sizes-33-128", "array-sizes-129-255" ] }
|
2020-09-21 17:31:34 +08:00
|
|
|
nom = { version = "5.1.2", default-features = false, features = [] }
|
2020-08-07 13:36:00 +08:00
|
|
|
|
|
|
|
# Logging and Panicking
|
|
|
|
panic-itm = "0.4.1"
|
|
|
|
cortex-m-rtic = "0.5.3"
|
2020-09-14 15:36:03 +08:00
|
|
|
cortex-m-log = { version = "0.6.2", features = [ "itm", "log-integration" ] }
|
2020-09-10 10:29:35 +08:00
|
|
|
log = {version = "0.4.11"}
|
|
|
|
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
2020-08-07 13:36:00 +08:00
|
|
|
|
2020-09-23 14:56:15 +08:00
|
|
|
# [dependencies.scpi]
|
|
|
|
# git = "https://github.com/occheung/scpi-rs"
|
|
|
|
# branch = "issue-4"
|
|
|
|
# default-features = false
|
|
|
|
# features = [ "build-info", "unit-frequency", "unit-angle" ]
|
2020-09-07 17:52:37 +08:00
|
|
|
|
2020-09-23 12:30:26 +08:00
|
|
|
[patch.crates-io]
|
|
|
|
smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp.git" }
|
2020-09-15 17:50:35 +08:00
|
|
|
|
2020-08-07 13:36:00 +08:00
|
|
|
[[example]]
|
|
|
|
name = "ethernet"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "fpga_config"
|
|
|
|
|
2020-09-02 11:00:04 +08:00
|
|
|
[[example]]
|
|
|
|
name = "tcp_client"
|
|
|
|
|
2020-09-03 17:41:27 +08:00
|
|
|
[[example]]
|
|
|
|
name = "mqtt_client"
|
|
|
|
|
2020-09-14 15:36:03 +08:00
|
|
|
[[example]]
|
|
|
|
name = "mqtt_hello_world"
|
|
|
|
|
2020-08-07 13:36:00 +08:00
|
|
|
# Uncomment for the allocator example.
|
|
|
|
# alloc-cortex-m = "0.3.5"
|
|
|
|
|
|
|
|
# this lets you use `cargo fix`!
|
|
|
|
[[bin]]
|
2020-08-10 18:06:15 +08:00
|
|
|
name = "firmware"
|
2020-08-07 13:36:00 +08:00
|
|
|
test = false
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1 # better optimizations
|
|
|
|
debug = true # symbols are nice and they don't increase the size on Flash
|
|
|
|
lto = true # better optimizations
|