File tree Expand file tree Collapse file tree 10 files changed +817
-4
lines changed
examples/stm32f4-single-motor-example Expand file tree Collapse file tree 10 files changed +817
-4
lines changed Original file line number Diff line number Diff line change 8
8
directory : " /"
9
9
schedule :
10
10
interval : " weekly"
11
+ - package-ecosystem : " cargo"
12
+ directory : " /examples/stm32f4-single-motor-example"
13
+ schedule :
14
+ interval : " weekly"
Original file line number Diff line number Diff line change 9
9
CARGO_TERM_COLOR : always
10
10
11
11
jobs :
12
- build :
12
+ lib :
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
35
35
run : cargo clippy ${{ matrix.features }}
36
36
- name : audit
37
37
run : cargo audit
38
+
39
+ stm32f4-single-motor-example :
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v3
43
+ - name : install rust toolchain
44
+ uses : dtolnay/rust-toolchain@stable
45
+ with :
46
+ targets : thumbv7em-none-eabihf
47
+ components : rustfmt clippy
48
+ - name : Install flip-link
49
+ run : cargo install flip-link
50
+ - name : build
51
+ run : cargo build
52
+ working-directory : examples/stm32f4-single-motor-example
53
+ - name : check
54
+ run : cargo check
55
+ working-directory : examples/stm32f4-single-motor-example
56
+ # no tests available for now => no test step as it'd fail otherwise
57
+ - name : check formatting
58
+ run : cargo fmt --all -- --check
59
+ working-directory : examples/stm32f4-single-motor-example
60
+ - name : clippy
61
+ run : cargo clippy
62
+ working-directory : examples/stm32f4-single-motor-example
63
+ - name : audit
64
+ run : cargo audit
65
+ working-directory : examples/stm32f4-single-motor-example
Original file line number Diff line number Diff line change 1
- /target
1
+ ** /target
2
2
/Cargo.lock
3
3
4
- .idea
5
- .vscode
4
+ ** / .idea
5
+ ** / .vscode
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ See the documentation for usage examples.
23
23
## Optional features
24
24
* ` defmt ` : you can enable the [ ` defmt ` ] ( https://defmt.ferrous-systems.com/ ) feature to get a ` defmt::debug! ` call for every speed change.
25
25
26
+ ## Examples
27
+ An simple example for the STM32F4 microcontrollers is [ available] ( examples/stm32f4-single-motor-example/README.md ) .
28
+
26
29
## Changelog
27
30
For the changelog please see the dedicated [ CHANGELOG.md] ( CHANGELOG.md ) .
28
31
Original file line number Diff line number Diff line change
1
+ [target.thumbv7em-none-eabihf]
2
+ runner = 'probe-run --chip STM32F401RE'
3
+ rustflags = [
4
+ "-C", "link-arg=-Tlink.x",
5
+ "-C", "link-arg=-Tdefmt.x",
6
+ "-C", "linker=flip-link",
7
+ ]
8
+
9
+ [build]
10
+ target = "thumbv7em-none-eabihf"
11
+
12
+ [env]
13
+ DEFMT_LOG = "info"
You can’t perform that action at this time.
0 commit comments