Skip to content

Commit

Permalink
Add stm32f767 example
Browse files Browse the repository at this point in the history
  • Loading branch information
t-moe committed Dec 2, 2024
1 parent e6f004a commit 4e196ba
Show file tree
Hide file tree
Showing 11 changed files with 977 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
target_and_example: [
# RISC-V devices:
{ target: "riscv32imac-unknown-none-elf", example: "examples/esp32c6/Cargo.toml" },
# arm7 devices:
{ target: "thumbv7em-none-eabihf", example: "examples/stm32f767/Cargo.toml" },
]


Expand All @@ -64,10 +66,10 @@ jobs:
uses: Swatinem/[email protected]

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

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

fmt:
name: Rustfmt
Expand Down
8 changes: 8 additions & 0 deletions examples/stm32f767/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[env]
DEFMT_LOG="debug"

[build]
target = "thumbv7em-none-eabihf"

[target.thumbv7em-none-eabihf]
runner = "probe-rs run --chip STM32F767ZITx"
1 change: 1 addition & 0 deletions examples/stm32f767/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 4e196ba

Please sign in to comment.