File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -22,33 +22,23 @@ use bxcan::RegisterBlock;
22
22
23
23
use cfg_if:: cfg_if;
24
24
25
- mod sealed {
26
- pub trait Sealed { }
27
- }
28
-
29
25
/// Marker trait for pins (with specific AF mode) that can be used as a CAN RX pin.
30
- pub trait RxPin : sealed :: Sealed { }
26
+ pub trait RxPin : crate :: private :: Sealed { }
31
27
32
28
/// Marker trait for pins (with specific AF mode) that can be used as a CAN TX pin.
33
- pub trait TxPin : sealed :: Sealed { }
29
+ pub trait TxPin : crate :: private :: Sealed { }
34
30
35
31
cfg_if ! {
36
32
if #[ cfg( any( feature = "gpio-f302" , feature = "gpio-f303" ) ) ] {
37
33
use crate :: gpio:: gpiod;
38
34
39
- impl sealed:: Sealed for gpioa:: PA11 <AF9 <PushPull >> { }
40
35
impl RxPin for gpioa:: PA11 <AF9 <PushPull >> { }
41
- impl sealed:: Sealed for gpioa:: PA12 <AF9 <PushPull >> { }
42
36
impl TxPin for gpioa:: PA12 <AF9 <PushPull >> { }
43
37
44
- impl sealed:: Sealed for gpiob:: PB8 <AF9 <PushPull >> { }
45
38
impl RxPin for gpiob:: PB8 <AF9 <PushPull >> { }
46
- impl sealed:: Sealed for gpiob:: PB9 <AF9 <PushPull >> { }
47
39
impl TxPin for gpiob:: PB9 <AF9 <PushPull >> { }
48
40
49
- impl sealed:: Sealed for gpiod:: PD0 <AF7 <PushPull >> { }
50
41
impl RxPin for gpiod:: PD0 <AF7 <PushPull >> { }
51
- impl sealed:: Sealed for gpiod:: PD1 <AF7 <PushPull >> { }
52
42
impl TxPin for gpiod:: PD1 <AF7 <PushPull >> { }
53
43
}
54
44
}
You can’t perform that action at this time.
0 commit comments