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 6bb9973
Show file tree
Hide file tree
Showing 11 changed files with 980 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
toolchain:
- stable
- nightly
os:
- ubuntu-latest
#os:
#- ubuntu-latest
#- windows-latest
#- macos-14
log_kind:
Expand All @@ -38,10 +38,12 @@ 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" },
]


runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest #${{ matrix.os }}

env:
VCPKGRS_DYNAMIC: 1 # Use dynamic linking on Windows build (vcpkg)
Expand All @@ -57,17 +59,14 @@ jobs:
toolchain: ${{ matrix.toolchain }}
components: rust-src

- name: Print rustc version
run: rustc --version

- name: Cache Dependencies
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 6bb9973

Please sign in to comment.