Skip to content

Commit 12cb85c

Browse files
authored
Merge branch 'main' into usb_dfu_reset
2 parents 40f5161 + 90f6497 commit 12cb85c

File tree

178 files changed

+9129
-3316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+9129
-3316
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717

1818
.vscode/*.json linguist-language=JSON-with-Comments
1919

20+
# Configure changelog files to use union merge strategy
21+
# This prevents merge conflicts by automatically combining changes from both branches
22+
CHANGELOG.md merge=union
23+
changelog.md merge=union
24+
CHANGELOG.txt merge=union
25+
changelog.txt merge=union
26+
2027
*.raw binary
2128
*.bin binary
2229
*.png binary

.github/ci/build-nightly.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011
mv rust-toolchain-nightly.toml rust-toolchain.toml
1112

1213
# needed for "dumb HTTP" transport support
@@ -22,6 +23,8 @@ fi
2223
hashtime restore /ci/cache/filetime.json || true
2324
hashtime save /ci/cache/filetime.json
2425

26+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
27+
2528
./ci-nightly.sh
2629

2730
# Save lockfiles

.github/ci/build-xtensa.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011

1112
# needed for "dumb HTTP" transport support
1213
# used when pointing stm32-metapac to a CI-built one.
1314
export CARGO_NET_GIT_FETCH_WITH_CLI=true
1415

15-
cargo install espup
16-
/ci/cache/cargo/bin/espup install --toolchain-version 1.84.0.0
16+
cargo install espup --locked
17+
espup install --toolchain-version 1.88.0.0
1718

1819
# Restore lockfiles
1920
if [ -f /ci/cache/lockfiles.tar ]; then
@@ -24,11 +25,7 @@ fi
2425
hashtime restore /ci/cache/filetime.json || true
2526
hashtime save /ci/cache/filetime.json
2627

27-
mkdir .cargo
28-
cat > .cargo/config.toml<< EOF
29-
[unstable]
30-
build-std = ["alloc", "core"]
31-
EOF
28+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
3229

3330
./ci-xtensa.sh
3431

.github/ci/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -euo pipefail
77
export RUSTUP_HOME=/ci/cache/rustup
88
export CARGO_HOME=/ci/cache/cargo
99
export CARGO_TARGET_DIR=/ci/cache/target
10+
export PATH=$CARGO_HOME/bin:$PATH
1011
if [ -f /ci/secrets/teleprobe-token.txt ]; then
1112
echo Got teleprobe token!
1213
export TELEPROBE_HOST=https://teleprobe.embassy.dev
@@ -27,6 +28,8 @@ fi
2728
hashtime restore /ci/cache/filetime.json || true
2829
hashtime save /ci/cache/filetime.json
2930

31+
cargo install --git https://github.com/embassy-rs/cargo-embassy-devtool --locked --rev 280829ad163f1444999468a57d28fb7c412babbe
32+
3033
./ci.sh
3134

3235
# Save lockfiles

.github/ci/doc.sh

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,42 @@ mv rust-toolchain-nightly.toml rust-toolchain.toml
1919
# which makes rustup very sad
2020
rustc --version > /dev/null
2121

22-
docserver-builder -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup
23-
docserver-builder -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup
24-
docserver-builder -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup
25-
docserver-builder -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup
26-
docserver-builder -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup
27-
docserver-builder -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup
28-
docserver-builder -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup
29-
docserver-builder -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup
30-
docserver-builder -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup
31-
docserver-builder -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup
32-
docserver-builder -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup
33-
docserver-builder -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup
34-
docserver-builder -i ./cyw43 -o webroot/crates/cyw43/git.zup
35-
docserver-builder -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup
36-
docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static
22+
docserver build -i ./embassy-boot -o webroot/crates/embassy-boot/git.zup
23+
docserver build -i ./embassy-boot-nrf -o webroot/crates/embassy-boot-nrf/git.zup
24+
docserver build -i ./embassy-boot-rp -o webroot/crates/embassy-boot-rp/git.zup
25+
docserver build -i ./embassy-boot-stm32 -o webroot/crates/embassy-boot-stm32/git.zup
26+
docserver build -i ./embassy-embedded-hal -o webroot/crates/embassy-embedded-hal/git.zup
27+
docserver build -i ./embassy-executor -o webroot/crates/embassy-executor/git.zup
28+
docserver build -i ./embassy-futures -o webroot/crates/embassy-futures/git.zup
29+
docserver build -i ./embassy-nrf -o webroot/crates/embassy-nrf/git.zup
30+
docserver build -i ./embassy-rp -o webroot/crates/embassy-rp/git.zup
31+
docserver build -i ./embassy-mspm0 -o webroot/crates/embassy-mspm0/git.zup
32+
docserver build -i ./embassy-nxp -o webroot/crates/embassy-nxp/git.zup
33+
docserver build -i ./embassy-sync -o webroot/crates/embassy-sync/git.zup
34+
docserver build -i ./cyw43 -o webroot/crates/cyw43/git.zup
35+
docserver build -i ./cyw43-pio -o webroot/crates/cyw43-pio/git.zup
36+
docserver build -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/git.zup --output-static webroot/static
3737

38-
docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup
39-
docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup
40-
docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup
38+
docserver build -i ./embassy-time -o webroot/crates/embassy-time/git.zup
39+
docserver build -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup
40+
docserver build -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup
4141

42-
docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup
43-
docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
44-
docserver-builder -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup
45-
docserver-builder -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup
46-
docserver-builder -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup
42+
docserver build -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup
43+
docserver build -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup
44+
docserver build -i ./embassy-usb-driver -o webroot/crates/embassy-usb-driver/git.zup
45+
docserver build -i ./embassy-usb-logger -o webroot/crates/embassy-usb-logger/git.zup
46+
docserver build -i ./embassy-usb-synopsys-otg -o webroot/crates/embassy-usb-synopsys-otg/git.zup
4747

48-
docserver-builder -i ./embassy-net -o webroot/crates/embassy-net/git.zup
49-
docserver-builder -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup
50-
docserver-builder -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup
51-
docserver-builder -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup
52-
docserver-builder -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup
53-
docserver-builder -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup
54-
docserver-builder -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup
55-
docserver-builder -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup
56-
docserver-builder -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup
57-
docserver-builder -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup
48+
docserver build -i ./embassy-net -o webroot/crates/embassy-net/git.zup
49+
docserver build -i ./embassy-net-nrf91 -o webroot/crates/embassy-net-nrf91/git.zup
50+
docserver build -i ./embassy-net-driver -o webroot/crates/embassy-net-driver/git.zup
51+
docserver build -i ./embassy-net-driver-channel -o webroot/crates/embassy-net-driver-channel/git.zup
52+
docserver build -i ./embassy-net-wiznet -o webroot/crates/embassy-net-wiznet/git.zup
53+
docserver build -i ./embassy-net-ppp -o webroot/crates/embassy-net-ppp/git.zup
54+
docserver build -i ./embassy-net-tuntap -o webroot/crates/embassy-net-tuntap/git.zup
55+
docserver build -i ./embassy-net-enc28j60 -o webroot/crates/embassy-net-enc28j60/git.zup
56+
docserver build -i ./embassy-net-esp-hosted -o webroot/crates/embassy-net-esp-hosted/git.zup
57+
docserver build -i ./embassy-net-adin1110 -o webroot/crates/embassy-net-adin1110/git.zup
5858

5959
export KUBECONFIG=/ci/secrets/kubeconfig.yml
6060
POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
@@ -65,6 +65,6 @@ kubectl cp webroot/static $POD:/data
6565
# so that it doesn't prevent other crates from getting docs updates when it breaks.
6666

6767
rm -rf webroot
68-
docserver-builder -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup
68+
docserver build -i ./embassy-stm32 -o webroot/crates/embassy-stm32/git.zup
6969
POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
7070
kubectl cp webroot/crates $POD:/data

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//"rust-analyzer.cargo.target": "thumbv8m.main-none-eabihf",
1818
"rust-analyzer.cargo.features": [
1919
// Comment out these features when working on the examples. Most example crates do not have any cargo features.
20-
"stm32f446re",
20+
"stm32f107rb",
2121
"time-driver-any",
2222
"unstable-pac",
2323
"exti",

ci-nightly.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,4 @@ if [[ -z "${CARGO_TARGET_DIR}" ]]; then
88
export CARGO_TARGET_DIR=target_ci
99
fi
1010

11-
cargo batch \
12-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly \
13-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,log \
14-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,defmt \
15-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt \
16-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv6m-none-eabi --features nightly,defmt,arch-cortex-m,executor-thread,executor-interrupt \
17-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m \
18-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-thread \
19-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-interrupt \
20-
--- build --release --manifest-path embassy-executor/Cargo.toml --target thumbv7em-none-eabi --features nightly,arch-cortex-m,executor-thread,executor-interrupt \
21-
--- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features nightly,arch-riscv32 \
22-
--- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features nightly,arch-riscv32,executor-thread \
23-
--- build --release --manifest-path examples/nrf52840-rtic/Cargo.toml --target thumbv7em-none-eabi --artifact-dir out/examples/nrf52840-rtic \
24-
--- build --release --manifest-path embassy-executor/Cargo.toml --target armv7a-none-eabi --features nightly,arch-cortex-ar,executor-thread \
25-
26-
RUSTFLAGS="$RUSTFLAGS -C target-cpu=atmega328p" cargo build --release --manifest-path embassy-executor/Cargo.toml --target avr-none -Z build-std=core,alloc --features nightly,arch-avr,avr-device/atmega328p
11+
cargo embassy-devtool build --group nightly

ci-xtensa.sh

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,4 @@ if [[ -z "${CARGO_TARGET_DIR}" ]]; then
99
export CARGO_TARGET_DIR=target_ci
1010
fi
1111

12-
cargo batch \
13-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf \
14-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features log \
15-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features defmt \
16-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \
17-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features defmt,arch-spin,executor-thread \
18-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,arch-spin,executor-thread \
19-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32s3-none-elf --features defmt,arch-spin,executor-thread \
20-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin \
21-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,rtos-trace \
22-
--- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,executor-thread \
23-
--- build --release --manifest-path embassy-sync/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \
24-
--- build --release --manifest-path embassy-time/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,defmt-timestamp-uptime,mock-driver \
25-
--- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf \
26-
--- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf --features generic-queue-8 \
27-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \
28-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \
29-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \
30-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet,dhcpv4-hostname \
31-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet \
32-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ieee802154 \
33-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet,medium-ieee802154 \
34-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv6,medium-ethernet \
35-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ethernet \
36-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip \
37-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip,medium-ethernet \
38-
--- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,proto-ipv6,medium-ip,medium-ethernet,medium-ieee802154 \
12+
cargo embassy-devtool build --group xtensa

0 commit comments

Comments
 (0)