Skip to content

Commit 5010a88

Browse files
committed
Port rtic-time::Monotonic implementations from rtic-monotonics for TIMx
1 parent 2b0bcd8 commit 5010a88

File tree

12 files changed

+605
-98
lines changed

12 files changed

+605
-98
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[target.thumbv7em-none-eabihf]
2-
runner = 'probe-run --chip STM32F411CEUx'
2+
runner = 'probe-rs run --chip STM32F411CEUx'
33
rustflags = [
44
# `flip-link` moves stack at the end of flash
55
#"-C", "linker=flip-link",

.github/workflows/ci.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- rust: nightly
4747
mcu: stm32f479
4848
experimental: true
49-
features: usb_fs,sdio-host,can,i2s,fsmc_lcd,rtic2
49+
features: usb_fs,sdio-host,can,i2s,fsmc_lcd,rtic2,rtic-tim2
5050

5151
steps:
5252
- uses: actions/checkout@v4
@@ -58,9 +58,6 @@ jobs:
5858
- name: Cache Dependencies
5959
uses: Swatinem/rust-cache@v2
6060
with:
61-
key: v0.19.0-${{ matrix.mcu }}
61+
key: v0.20.0-${{ matrix.mcu }}
6262

63-
- uses: actions-rs/cargo@v1
64-
with:
65-
command: check
66-
args: --features=${{ matrix.mcu }},${{ matrix.features }} --examples
63+
- run: cargo check --features=${{ matrix.mcu }},${{ matrix.features }} --examples

.github/workflows/clippy.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ jobs:
1717
- name: Cache Dependencies
1818
uses: Swatinem/rust-cache@v2
1919
with:
20-
key: v0.18.0
20+
key: v0.20.0
2121

22-
- uses: actions-rs/clippy-check@v1
22+
- run: cargo clippy --examples --features=stm32f479,usb_fs,sdio-host,can,i2s,fsmc_lcd,rtic1
2323
with:
2424
token: ${{ secrets.GITHUB_TOKEN }}
25-
args: --examples --features=stm32f479,usb_fs,sdio-host

.github/workflows/rustfmt.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,4 @@ jobs:
1515
- name: Use the latest stable rustc
1616
run: rustup update stable && rustup default stable
1717

18-
- uses: actions-rs/cargo@v1
19-
with:
20-
command: fmt
21-
args: --all -- --check
18+
- run: cargo fmt --all -- --check

.vscode/settings.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"rust-analyzer.check.allTargets": false,
33
"rust-analyzer.check.targets": "thumbv7em-none-eabihf",
4-
"rust-analyzer.cargo.features": [
5-
"defmt",
6-
"rtic1",
7-
"stm32f411"
8-
],
4+
"rust-analyzer.cargo.features": ["defmt", "rtic1", "stm32f411"]
95
}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Added non-blocking serial based on DMA [#738]
1414
- use RTCCLK for RTC wakeup timer for short durations [#746]
1515
- Support 8-bit FMC data bus
16+
- Port `rtic-time::Monotonic` implementations from `rtic-monotonics` for TIMx
1617

1718
### Fixed
1819

0 commit comments

Comments
 (0)