File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ doc = []
78
78
rt = [" stm32f1/rt" ]
79
79
stm32f100 = [" stm32f1/stm32f100" , " device-selected" ]
80
80
stm32f101 = [" stm32f1/stm32f101" , " device-selected" ]
81
- stm32f103 = [" stm32f1/stm32f103" , " device-selected" ]
81
+ stm32f103 = [" stm32f1/stm32f103" , " device-selected" , " has-can " ]
82
82
stm32f105 = [" stm32f1/stm32f107" , " device-selected" , " connectivity" ]
83
83
stm32f107 = [" stm32f1/stm32f107" , " device-selected" , " connectivity" ]
84
84
@@ -89,7 +89,9 @@ high = ["medium"]
89
89
# Devices with 768 Kb ROM or more
90
90
xl = [" high" ]
91
91
# Connectivity line devices (`stm32f105xx` and `stm32f107xx`)
92
- connectivity = [" medium" ]
92
+ connectivity = [" medium" , " has-can" ]
93
+ # Devices with CAN interface
94
+ has-can = []
93
95
94
96
[profile .dev ]
95
97
incremental = false
@@ -134,7 +136,7 @@ required-features = ["connectivity"]
134
136
135
137
[[example ]]
136
138
name = " can-loopback"
137
- required-features = [" stm32f103 " , " stm32f105 " , " stm32f107 " ]
139
+ required-features = [" has-can " ]
138
140
139
141
[[example ]]
140
142
name = " can-rtfm"
Original file line number Diff line number Diff line change @@ -144,10 +144,7 @@ pub mod afio;
144
144
pub mod backup_domain;
145
145
#[ cfg( feature = "device-selected" ) ]
146
146
pub mod bb;
147
- #[ cfg( all(
148
- feature = "device-selected" ,
149
- any( feature = "stm32f103" , feature = "connectivity" )
150
- ) ) ]
147
+ #[ cfg( all( feature = "device-selected" , feature = "has-can" ) ) ]
151
148
pub mod can;
152
149
#[ cfg( feature = "device-selected" ) ]
153
150
pub mod crc;
You can’t perform that action at this time.
0 commit comments