1
- #[ cfg( feature = "unstable-riscv" ) ]
2
- use super :: Riscv ;
3
1
use super :: {
4
2
BuildError , Cpu , Description , EmptyToNone , Name , Peripheral , RegisterProperties , SvdError ,
5
3
ValidateLevel ,
@@ -107,14 +105,6 @@ pub struct Device {
107
105
/// Specify the compliant CMSIS-SVD schema version
108
106
#[ cfg_attr( feature = "serde" , serde( skip, default = "default_schema_version" ) ) ]
109
107
pub schema_version : String ,
110
-
111
- /// Describe the processor included in the device
112
- #[ cfg_attr(
113
- feature = "serde" ,
114
- serde( default , skip_serializing_if = "Option::is_none" )
115
- ) ]
116
- #[ cfg( feature = "unstable-riscv" ) ]
117
- pub riscv : Option < Riscv > ,
118
108
}
119
109
120
110
fn default_xmlns_xs ( ) -> String {
@@ -140,8 +130,6 @@ pub struct DeviceBuilder {
140
130
version : Option < String > ,
141
131
description : Option < String > ,
142
132
license_text : Option < String > ,
143
- #[ cfg( feature = "unstable-riscv" ) ]
144
- riscv : Option < Riscv > ,
145
133
cpu : Option < Cpu > ,
146
134
header_system_filename : Option < String > ,
147
135
header_definitions_prefix : Option < String > ,
@@ -164,8 +152,6 @@ impl From<Device> for DeviceBuilder {
164
152
version : Some ( d. version ) ,
165
153
description : Some ( d. description ) ,
166
154
license_text : d. license_text ,
167
- #[ cfg( feature = "unstable-riscv" ) ]
168
- riscv : d. riscv ,
169
155
cpu : d. cpu ,
170
156
header_system_filename : d. header_system_filename ,
171
157
header_definitions_prefix : d. header_definitions_prefix ,
@@ -216,12 +202,6 @@ impl DeviceBuilder {
216
202
self . license_text = value;
217
203
self
218
204
}
219
- /// Set the riscv of the device.
220
- #[ cfg( feature = "unstable-riscv" ) ]
221
- pub fn riscv ( mut self , value : Riscv ) -> Self {
222
- self . riscv = Some ( value) ;
223
- self
224
- }
225
205
/// Set the cpu of the device.
226
206
pub fn cpu ( mut self , value : Option < Cpu > ) -> Self {
227
207
self . cpu = value;
@@ -303,8 +283,6 @@ impl DeviceBuilder {
303
283
} )
304
284
. ok_or_else ( || BuildError :: Uninitialized ( "description" . to_string ( ) ) ) ?,
305
285
license_text : self . license_text ,
306
- #[ cfg( feature = "unstable-riscv" ) ]
307
- riscv : self . riscv ,
308
286
cpu : self . cpu ,
309
287
header_system_filename : self . header_system_filename ,
310
288
header_definitions_prefix : self . header_definitions_prefix ,
@@ -363,10 +341,6 @@ impl Device {
363
341
if builder. license_text . is_some ( ) {
364
342
self . license_text = builder. license_text . empty_to_none ( ) ;
365
343
}
366
- #[ cfg( feature = "unstable-riscv" ) ]
367
- if builder. riscv . is_some ( ) {
368
- self . riscv = builder. riscv ;
369
- }
370
344
if builder. cpu . is_some ( ) {
371
345
self . cpu = builder. cpu ;
372
346
}
0 commit comments