File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11
11
continue-on-error : ${{ matrix.experimental || false }}
12
12
strategy :
13
13
matrix :
14
- # All generated code should be running on stable now, MRSV is 1.59 .0
15
- rust : [nightly, stable, 1.59 .0]
14
+ # All generated code should be running on stable now, MRSV is 1.60 .0
15
+ rust : [nightly, stable, 1.60 .0]
16
16
17
17
include :
18
18
# Nightly is only for reference and allowed to fail
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
- - Use ` atomic-polyfill ` to allow builds on riscv32imc-unknown-none-elf targets when needed.
10
+ - Use ` portable-atomic ` to allow builds on ` riscv32imc-unknown-none-elf`` targets when needed.
11
11
12
12
## [ v0.10.0] - 2023-03-28
13
13
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ rust-version = "1.59"
13
13
[dependencies ]
14
14
embedded-hal = { version = " 0.2.6" , features = [" unproven" ] }
15
15
nb = " 1.0.0"
16
- atomic-polyfill = " 1.0.2"
17
16
riscv = { version = " 0.10.1" , features = [" critical-section-single-hart" ] }
18
17
e310x = { version = " 0.11.0" , features = [" rt" , " critical-section" ] }
19
18
19
+ [target .'cfg(not(target_has_atomic = "32"))' .dependencies ]
20
+ portable-atomic = { version = " 1.4" , default-features = false , features = [" unsafe-assume-single-core" ] }
21
+
20
22
[features ]
21
23
g002 = [" e310x/g002" ]
22
24
virq = []
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ This project is developed and maintained by the [RISC-V team][team].
12
12
13
13
## Minimum Supported Rust Version (MSRV)
14
14
15
- This crate is guaranteed to compile on stable Rust 1.59 .0 and up. It * might*
15
+ This crate is guaranteed to compile on stable Rust 1.60 .0 and up. It * might*
16
16
compile with older versions but that may change in any new patch release.
17
17
18
18
## License
Original file line number Diff line number Diff line change 1
1
//! General Purpose I/O
2
2
3
- use atomic_polyfill:: { AtomicU32 , Ordering } ;
4
3
use core:: marker:: PhantomData ;
5
4
5
+ #[ cfg( target_has_atomic = "32" ) ]
6
+ use core:: sync:: atomic:: { AtomicU32 , Ordering } ;
7
+ #[ cfg( not( target_has_atomic = "32" ) ) ]
8
+ use portable_atomic:: { AtomicU32 , Ordering } ;
9
+
6
10
/// GpioExt trait extends the GPIO0 peripheral.
7
11
pub trait GpioExt {
8
12
/// The parts to split the GPIO into.
You can’t perform that action at this time.
0 commit comments