Skip to content

Commit 00e168b

Browse files
committed
stm32l4: Add EVAL-ADIN1110EBZ example with basic http server
Page show the current temperature and auto refresh every 1s.
1 parent c832530 commit 00e168b

File tree

3 files changed

+449
-3
lines changed

3 files changed

+449
-3
lines changed

examples/stm32l4/.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# replace STM32F429ZITx with your chip as listed in `probe-rs chip list`
33
#runner = "probe-rs run --chip STM32L475VGT6"
44
#runner = "probe-rs run --chip STM32L475VG"
5-
runner = "probe-rs run --chip STM32L4S5VI"
5+
runner = "probe-run --chip STM32L4S5QI"
66

77
[build]
88
target = "thumbv7em-none-eabi"

examples/stm32l4/Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ license = "MIT OR Apache-2.0"
66

77
[dependencies]
88
# Change stm32l4s5vi to your chip name, if necessary.
9-
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "stm32l4s5vi", "memory-x", "time-driver-any", "exti", "unstable-traits", "chrono"] }
9+
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "stm32l4s5qi", "memory-x", "time-driver-any", "exti", "unstable-traits", "chrono"] }
1010
embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
1111
embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
12-
embassy-time = { version = "0.1.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] }
12+
embassy-time = { version = "0.1.2", path = "../../embassy-time", features = ["defmt", "unstable-traits", "defmt-timestamp-uptime", "nightly"] }
1313
embassy-embedded-hal = { version = "0.1.0", path = "../../embassy-embedded-hal" }
1414
embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] }
15+
embassy-net-adin1110 = { version = "0.1.0", path = "../../embassy-net-adin1110", default-features = false }
16+
embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "udp", "tcp", "dhcpv4", "medium-ethernet"] }
17+
embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
18+
embedded-io-async = { version = "0.5.0", features = ["defmt-03"] }
19+
embedded-io = { version = "0.5.0", features = ["defmt-03"] }
1520

1621
defmt = "0.3"
1722
defmt-rtt = "0.4"
@@ -21,10 +26,13 @@ cortex-m-rt = "0.7.0"
2126
embedded-hal = "0.2.6"
2227
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.1" }
2328
embedded-hal-async = { version = "=1.0.0-rc.1" }
29+
embedded-hal-bus = { version = "=0.1.0-rc.1", features = ["async"] }
2430
panic-probe = { version = "0.3", features = ["print-defmt"] }
2531
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
2632
heapless = { version = "0.7.5", default-features = false }
2733
chrono = { version = "^0.4", default-features = false }
34+
rand = { version = "0.8.5", default-features = false }
35+
static_cell = {version = "1.1", features = ["nightly"]}
2836

2937
micromath = "2.0.0"
3038

0 commit comments

Comments
 (0)