Skip to content

Commit 3c9d75c

Browse files
authored
Merge pull request #54 from romancardenas/master
use atomic-polyfill
2 parents 7ed3a7b + 9345570 commit 3c9d75c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ jobs:
2727
toolchain: ${{ matrix.rust }}
2828
override: true
2929
- name: Install all Rust targets for ${{ matrix.rust }}
30-
run: rustup target install --toolchain=${{ matrix.rust }} x86_64-unknown-linux-gnu riscv32imac-unknown-none-elf riscv64imac-unknown-none-elf riscv64gc-unknown-none-elf
30+
run: rustup target install --toolchain=${{ matrix.rust }} x86_64-unknown-linux-gnu riscv32imac-unknown-none-elf riscv32imc-unknown-none-elf riscv64imac-unknown-none-elf riscv64gc-unknown-none-elf
3131
- name: Run CI script for riscv32imac-unknown-none-elf under ${{ matrix.rust }}
3232
run: |
3333
cargo check --target riscv32imac-unknown-none-elf
3434
cargo check --target riscv32imac-unknown-none-elf --features g002
3535
cargo check --target riscv32imac-unknown-none-elf --features virq
3636
cargo check --target riscv32imac-unknown-none-elf --features g002,virq
37+
cargo check --target riscv32imc-unknown-none-elf
38+
cargo check --target riscv32imc-unknown-none-elf --features g002
39+
cargo check --target riscv32imc-unknown-none-elf --features virq
40+
cargo check --target riscv32imc-unknown-none-elf --features g002,virq
3741
3842
# On macOS and Windows, we at least make sure that the crate builds and links.
3943
build-other:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Use `atomic-polyfill` to allow builds on riscv32imc-unknown-none-elf targets when needed.
11+
1012
## [v0.10.0] - 2023-03-28
1113

1214
### Added

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rust-version = "1.59"
1313
[dependencies]
1414
embedded-hal = { version = "0.2.6", features = ["unproven"] }
1515
nb = "1.0.0"
16+
atomic-polyfill = "1.0.2"
1617
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }
1718
e310x = { version = "0.11.0", features = ["rt", "critical-section"] }
1819

src/gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! General Purpose I/O
22
3+
use atomic_polyfill::{AtomicU32, Ordering};
34
use core::marker::PhantomData;
4-
use core::sync::atomic::{AtomicU32, Ordering};
55

66
/// GpioExt trait extends the GPIO0 peripheral.
77
pub trait GpioExt {

0 commit comments

Comments
 (0)