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]
|
|
|
|
cortex-m-semihosting = "0.3.3"
|
|
|
|
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" ] }
|
|
|
|
smoltcp = { version = "0.6.0", default-features = false, features = [ "ethernet", "proto-ipv4", "proto-ipv6", "socket-tcp" ] }
|
2020-08-07 13:36:00 +08:00
|
|
|
nb = "1.0.0"
|
2020-09-03 17:41:27 +08:00
|
|
|
|
2020-08-28 15:48:13 +08:00
|
|
|
lexical-core = { version="0.7.1", features=["radix"], default-features=false }
|
2020-09-01 10:21:55 +08:00
|
|
|
libm = "0.2.0"
|
|
|
|
embedded-nal = "0.1.0"
|
|
|
|
minimq = "0.1.0"
|
2020-09-02 11:00:04 +08:00
|
|
|
enum-iterator = "0.6.0"
|
|
|
|
heapless = "0.5.5"
|
|
|
|
generic-array = "0.14.3"
|
2020-08-07 13:36:00 +08:00
|
|
|
|
|
|
|
# Logging and Panicking
|
|
|
|
panic-itm = "0.4.1"
|
|
|
|
panic-semihosting = { version = "0.5.3", features = [ "exit" ] }
|
|
|
|
cortex-m-rtic = "0.5.3"
|
|
|
|
cortex-m-log = { version = "~0.6", features = [ "itm" ] }
|
|
|
|
|
2020-09-07 17:52:37 +08:00
|
|
|
[dependencies.scpi]
|
|
|
|
git = "https://github.com/occheung/scpi-rs"
|
|
|
|
branch = "issue-4"
|
|
|
|
default-features = false
|
|
|
|
features = [ "build-info", "unit-frequency" ]
|
|
|
|
|
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-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
|