File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
repository = " https://github.com/mvirkkunen/usb-device"
11
11
12
12
[dependencies ]
13
- atomic-polyfill = " 1.0.2"
14
13
defmt = { version = " 0.3" , optional = true }
14
+ portable-atomic = { version = " 1.2.0" , default-features = false }
15
15
16
16
[dev-dependencies ]
17
17
rusb = " 0.9.1"
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ use crate::endpoint::{
3
3
IsochronousUsageType ,
4
4
} ;
5
5
use crate :: { Result , UsbDirection , UsbError } ;
6
- use atomic_polyfill:: { AtomicPtr , Ordering } ;
7
6
use core:: cell:: RefCell ;
8
7
use core:: mem;
9
8
use core:: ptr;
9
+ use portable_atomic:: { AtomicPtr , Ordering } ;
10
10
11
11
/// A trait for device-specific USB peripherals. Implement this to add support for a new hardware
12
12
/// platform.
Original file line number Diff line number Diff line change 1
1
use crate :: bus:: UsbBus ;
2
2
use crate :: { Result , UsbDirection } ;
3
- use atomic_polyfill:: { AtomicPtr , Ordering } ;
4
3
use core:: marker:: PhantomData ;
4
+ use portable_atomic:: { AtomicPtr , Ordering } ;
5
5
6
6
/// Trait for endpoint type markers.
7
7
pub trait EndpointDirection {
You can’t perform that action at this time.
0 commit comments