Skip to content

Commit 4e196ba

Browse files
committed
Add stm32f767 example
1 parent e6f004a commit 4e196ba

File tree

11 files changed

+977
-2
lines changed

11 files changed

+977
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
target_and_example: [
3939
# RISC-V devices:
4040
{ target: "riscv32imac-unknown-none-elf", example: "examples/esp32c6/Cargo.toml" },
41+
# arm7 devices:
42+
{ target: "thumbv7em-none-eabihf", example: "examples/stm32f767/Cargo.toml" },
4143
]
4244

4345

@@ -64,10 +66,10 @@ jobs:
6466
uses: Swatinem/rust-cache@v2.7.5
6567

6668
- name: Run cargo check for embedded-test
67-
run: cargo check --features ${{matrix.log_kind}} --locked
69+
run: cargo check --target ${{ matrix.target_and_example.target}} --features ${{matrix.log_kind}} --locked
6870

6971
- name: Run cargo check for example
70-
run: cargo check --no-default-features --features ${{matrix.log_kind}} --manifest-path ${{matrix.target_and_example.example}} --locked
72+
run: cargo check --target ${{ matrix.target_and_example.target}} --no-default-features --features ${{matrix.log_kind}} --manifest-path ${{matrix.target_and_example.example}} --locked
7173

7274
fmt:
7375
name: Rustfmt

examples/stm32f767/.cargo/config.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[env]
2+
DEFMT_LOG="debug"
3+
4+
[build]
5+
target = "thumbv7em-none-eabihf"
6+
7+
[target.thumbv7em-none-eabihf]
8+
runner = "probe-rs run --chip STM32F767ZITx"

examples/stm32f767/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)