blob: 9a77dcd63ef928fe5a5e376c660359f636225e5b [file] [log] [blame]
Joachim Krechdfe628f2016-07-01 15:36:52 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 Copyright (c) 2013-2016 ARM Limited. All rights reserved.
5
6 SPDX-License-Identifier: Apache-2.0
7
8 Licensed under the Apache License, Version 2.0 (the License); you may
9 not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an AS IS BASIS, WITHOUT
16 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 $Date: 13. June 2016
21 $Revision: 1.4.5
22
23 $Project: Schema File for Package Description File Format Specification
24
25 Package file name convention <vendor>.<name>.<version>.pack
26 SchemaVersion=1.4
27
28 13. June 2016: 1.4.5
29 - added: Punits to ProcessorType
30 - added: Punit to DebugType
31
32 26. April 2016: 1.4.4
33 - added: attribute defaultResetSequence to DebugType.
34 - added: <requirements> section:
35 - <packages> defining dependencies between packs
36 - <languages> defining required language support e.g. C99
37 - <compiler> defining required toolchains
38 - added: <create> section used for tool independent project description
39 - attributes: name, documentation, condition
40 - <target> specifies the board and device targeted by the project
41 - <options>
42 - <files> specifies the grouped files
43 - updated: <algorith> element
44 - added attributes: style, parameter and endian
45 - updated: <memory> element
46 - added attributes: name, access and alias
47 - deprecating attribute: id (replaced by name + access)
48
49 03. Dec 2015: 1.4.3
50 - adding attribute "sdf" to devices section element debugconfig
51
52 16. Oct 2015: 1.4.1
53 - pName, Dname, Dvariant type changed from xs:string to RestrictedString
54
55 28. Aug 2015: 1.4.0
56 - deprecate devices memory tag attribute id and use
57 introduced name and access attributes instead
58 - added devices memory tag attribute: alias
59 - added devices algorithm tag attribute: style
60 - added attribute to define a default component variant
61 - added board book category: layout
62
63 29. May 2015
64 - added missing Pname attribute to GeneratorDeviceSelectType used for multi processor
65 devices
66 12. Jan. 2014
67 - allow to link a component with a generator via new component attribute
68 - generator command extended to deal with more sophisticated command lines / document sequence
69
70-->
71
72<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" version="1.3">
73
74 <!-- NonNegativeInteger specifies the format in which numbers are represented in hexadecimal or decimal format -->
75 <xs:simpleType name="NonNegativeInteger">
76 <xs:restriction base="xs:string">
77 <xs:pattern value="[+]?(0x|0X)?[0-9a-fA-F]+"/>
78 </xs:restriction>
79 </xs:simpleType>
80
81 <!-- Registered Device Vendors -->
82 <xs:simpleType name="DeviceVendorEnum">
83 <xs:restriction base="xs:token">
84 <xs:enumeration value="ABOV Semiconductor:126"/>
85 <xs:enumeration value="Actel:56"/>
86 <xs:enumeration value="Altera:85"/>
87 <xs:enumeration value="Altium:65"/>
88 <xs:enumeration value="Ambiq Micro:120"/>
89 <xs:enumeration value="Analog Devices:1"/>
90 <xs:enumeration value="ARM:82"/>
91 <xs:enumeration value="ARM CMSIS:109"/>
92 <xs:enumeration value="Atmel:3"/>
93 <xs:enumeration value="CSR:118"/>
94 <xs:enumeration value="Cypress:19"/>
95 <xs:enumeration value="Dialog Semiconductor:113"/>
96 <xs:enumeration value="Dolphin:57"/>
97 <xs:enumeration value="Domosys:26"/>
98 <xs:enumeration value="Ember:98"/>
99 <xs:enumeration value="Energy Micro:97"/>
100 <xs:enumeration value="EnOcean:91"/>
101 <xs:enumeration value="Evatronix:64"/>
102 <xs:enumeration value="Generic:5"/>
103 <xs:enumeration value="GigaDevice:123"/>
104 <xs:enumeration value="Holtek:106"/>
105 <xs:enumeration value="Hynix Semiconductor:6"/>
106 <xs:enumeration value="Hyundai:35"/>
107 <xs:enumeration value="Infineon:7"/>
108 <xs:enumeration value="Kionix:127"/>
109 <xs:enumeration value="Lapis Semiconductor:10"/>
110 <xs:enumeration value="Linear Technology:136"/>
111 <xs:enumeration value="Luminary Micro:76"/>
112 <xs:enumeration value="Maxim:23"/>
113 <xs:enumeration value="MediaTek:129"/>
114 <xs:enumeration value="MegaChips:128"/>
115 <xs:enumeration value="Mentor Graphics Co.:24"/>
116 <xs:enumeration value="Micronas:30"/>
117 <xs:enumeration value="Microsemi:112"/>
118 <xs:enumeration value="Milandr:99"/>
119 <xs:enumeration value="MindMotion:132"/>
120 <xs:enumeration value="NetSilicon:67"/>
121 <xs:enumeration value="Nordic Semiconductor:54"/>
122 <xs:enumeration value="Nuvoton:18"/>
123 <xs:enumeration value="NXP:11"/>
124 <xs:enumeration value="OKI SEMICONDUCTOR CO.,LTD.:108"/>
125 <xs:enumeration value="Panasonic:131"/>
126 <xs:enumeration value="Realtek Semiconductor:124"/>
127 <xs:enumeration value="Redpine Signals:125"/>
128 <xs:enumeration value="Renesas:117"/>
129 <xs:enumeration value="ROHM:103"/>
130 <xs:enumeration value="Samsung:47"/>
131 <xs:enumeration value="Silicon Labs:21"/>
132 <xs:enumeration value="SONiX:110"/>
133 <xs:enumeration value="Spansion:100"/>
134 <xs:enumeration value="STMicroelectronics:13"/>
135 <xs:enumeration value="Sunrise Micro Devices:121"/>
136 <xs:enumeration value="TI:16"/>
137 <xs:enumeration value="Texas Instruments:16"/>
138 <xs:enumeration value="Toshiba:92"/>
139 <xs:enumeration value="Triad Semiconductor:104"/>
140 <xs:enumeration value="WIZnet:122"/>
141 <xs:enumeration value="Xinnova:135"/>
142 <!-- deprecated: do not use -->
143 <xs:enumeration value="Freescale:78"/>
144 <xs:enumeration value="Freescale Semiconductor:78"/>
145 <xs:enumeration value="NXP (founded by Philips):11"/>
146 </xs:restriction>
147 </xs:simpleType>
148
149 <!-- AlgorithmStyleType: allow support of different flash programming algorithm styles -->
150 <xs:simpleType name="AlgorithmStyleType">
151 <xs:restriction base="xs:token">
152 <xs:enumeration value="Keil"/>
153 <xs:enumeration value="IAR"/>
154 <xs:enumeration value="CMSIS"/>
155 </xs:restriction>
156 </xs:simpleType>
157
158 <!-- Component Class Name Type: specify your own Class in taxonomy -->
159 <xs:simpleType name="CclassType">
160 <xs:restriction base="xs:string">
161 <xs:minLength value="3"/>
162 <xs:maxLength value="32"/>
163 </xs:restriction>
164 </xs:simpleType>
165
166 <!-- Component Group Name Type -->
167 <xs:simpleType name="CgroupType">
168 <xs:restriction base="xs:string">
169 <xs:minLength value="3"/>
170 <xs:maxLength value="32"/>
171 </xs:restriction>
172 </xs:simpleType>
173
174 <!-- Component Sub Name Type -->
175 <xs:simpleType name="CsubType">
176 <xs:restriction base="xs:string">
177 <xs:minLength value="0"/>
178 <xs:maxLength value="32"/>
179 </xs:restriction>
180 </xs:simpleType>
181
182 <!-- Component Variant Name Type -->
183 <xs:simpleType name="CvariantType">
184 <xs:restriction base="xs:string">
185 <xs:minLength value="3"/>
186 <xs:maxLength value="32"/>
187 </xs:restriction>
188 </xs:simpleType>
189
190 <!-- AccessType (added in 1.4.4) -->
191 <xs:simpleType name="AccessType">
192 <xs:restriction base="xs:string">
193 <xs:pattern value="[rwxpsnc]+"/>
194 </xs:restriction>
195 </xs:simpleType>
196
197 <!-- Processor Type -->
198 <xs:complexType name="ProcessorType">
199 <!-- Pname defines an identifier for a specific processor in a multi-processor devices -->
200 <xs:attribute name="Pname" type="RestrictedString"/>
201 <!-- Punits specifies the number of processing units in a symmetric multi-processor core -->
202 <xs:attribute name="Punits" type="InstancesType"/>
203 <!-- Dcore specifies the processor from a list of supported processors -->
204 <xs:attribute name="Dcore" type="DcoreEnum"/>
205 <!-- Dfpu specifies the hardware floating point unit -->
206 <xs:attribute name="Dfpu" type="DfpuEnum"/>
207 <!-- Dmpu specifies the memory protection unit -->
208 <xs:attribute name="Dmpu" type="DmpuEnum"/>
209 <!-- Dendian specifies the endianess supported by the processor -->
210 <xs:attribute name="Dendian" type="DendianEnum"/>
211 <!-- Dclock specifies the maximum core clock frequency -->
212 <xs:attribute name="Dclock" type="xs:unsignedInt"/>
213 <!-- DcoreVersion specifies the revision of the processor -->
214 <xs:attribute name="DcoreVersion" type="xs:string"/>
215 </xs:complexType>
216
217 <!-- Compile Type: -->
218 <xs:complexType name="CompileType">
219 <!-- Pname identifies the processor this setting belongs to -->
220 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
221 <!-- CMSIS-CORE device header file (sets compiler include path) -->
222 <xs:attribute name="header" type="xs:string"/>
223 <!-- Device specific preprocessor define (sets preprocessor define -->
224 <xs:attribute name="define" type="xs:string"/>
225 <!-- Processor instance specific preprocessor define (sets preprocessor define on the commandline) -->
226 <xs:attribute name="Pdefine" type="xs:string"/>
227 </xs:complexType>
228
229 <!-- DebugVarsType -->
230 <xs:complexType name="DebugVarsType">
231 <xs:simpleContent>
232 <xs:extension base="xs:string">
233 <xs:attribute name="configfile" type="xs:string" use="optional"/>
234 <xs:attribute name="version" type="VersionType" use="optional"/>
235 <xs:attribute name="Pname" type="xs:string" use="optional"/>
236 <xs:anyAttribute processContents="lax"/>
237 </xs:extension>
238 </xs:simpleContent>
239 </xs:complexType>
240
241 <!-- DebugProtocolEnum -->
242 <xs:simpleType name="DebugProtocolEnum">
243 <xs:restriction base="xs:token">
244 <xs:enumeration value="jtag"/>
245 <xs:enumeration value="cjtag"/>
246 <xs:enumeration value="swd"/>
247 </xs:restriction>
248 </xs:simpleType>
249
250 <!-- DebugConfigType -->
251 <xs:complexType name="DebugConfigType">
252 <xs:attribute name="default" type="DebugProtocolEnum" use="optional" default="swd"/>
253 <xs:attribute name="clock" type="xs:unsignedInt" use="optional"/>
254 <xs:attribute name="swj" type="xs:boolean" use="optional"/>
255 <!-- Debugger System Description File -->
256 <xs:attribute name="sdf" type="xs:string" use="optional"/>
257 <xs:anyAttribute processContents="lax"/>
258 </xs:complexType>
259
260 <!-- JtagType -->
261 <xs:complexType name="JtagType">
262 <xs:attribute name="tapindex" type="NonNegativeInteger" use="optional"/>
263 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
264 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
265 <xs:attribute name="irlen" type="xs:unsignedInt" use="optional"/>
266 <xs:anyAttribute processContents="lax"/>
267 </xs:complexType>
268
269 <!-- SwdType -->
270 <xs:complexType name="SwdType">
271 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
272 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
273 <xs:anyAttribute processContents="lax"/>
274 </xs:complexType>
275
276 <!-- DebugPortType -->
277 <xs:complexType name="DebugPortType">
278 <xs:sequence>
279 <xs:element name="jtag" type="JtagType" minOccurs="0" maxOccurs="1"/>
280 <xs:element name="swd" type="SwdType" minOccurs="0" maxOccurs="1"/>
281 </xs:sequence>
282 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
283 <xs:anyAttribute processContents="lax"/>
284 </xs:complexType>
285
286 <!-- DataPatchAccessTypeEnum enumeration type -->
287 <xs:simpleType name="DataPatchAccessTypeEnum">
288 <xs:restriction base="xs:token">
289 <xs:enumeration value="DP"/>
290 <xs:enumeration value="AP"/>
291 <xs:enumeration value="Mem"/>
292 </xs:restriction>
293 </xs:simpleType>
294
295 <!-- ExpressionType -->
296 <xs:simpleType name="ExpressionType">
297 <xs:restriction base="xs:string"/>
298 </xs:simpleType>
299
300 <!-- DataPatchType -->
301 <xs:complexType name="DataPatchType">
302 <xs:attribute name="type" type="DataPatchAccessTypeEnum" use="optional"/>
303 <xs:attribute name="address" type="NonNegativeInteger" use="required"/>
304 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
305 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/>
306 <xs:attribute name="value" type="NonNegativeInteger" use="required"/>
307 <xs:attribute name="mask" type="NonNegativeInteger" use="optional"/>
308 <xs:attribute name="info" type="xs:string" use="optional"/>
309 <xs:anyAttribute processContents="lax"/>
310 </xs:complexType>
311
312 <!-- BlockType -->
313 <xs:complexType name="SequenceBlockType">
314 <xs:simpleContent>
315 <xs:extension base="xs:string">
316 <xs:attribute name="atomic" type="xs:boolean" use="optional"/>
317 <xs:attribute name="info" type="xs:string" use="optional"/>
318 <xs:anyAttribute processContents="lax"/>
319 </xs:extension>
320 </xs:simpleContent>
321 </xs:complexType>
322
323 <!-- ControlType -->
324 <xs:complexType name="SequenceControlType">
325 <xs:sequence>
326 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
327 </xs:sequence>
328 <xs:attribute name="if" type="xs:string" use="optional"/>
329 <xs:attribute name="while" type="ExpressionType" use="optional"/>
330 <xs:attribute name="timeout" type="xs:unsignedInt" use="optional"/>
331 <xs:attribute name="info" type="xs:string" use="optional"/>
332 <xs:anyAttribute processContents="lax"/>
333 </xs:complexType>
334
335 <!-- SequenceElementType -->
336 <xs:group name="SequenceElementGroup">
337 <xs:choice>
338 <xs:element name="block" type="SequenceBlockType"/>
339 <xs:element name="control" type="SequenceControlType"/>
340 </xs:choice>
341 </xs:group>
342
343
344 <!-- SequenceType -->
345 <xs:complexType name="SequenceType">
346 <xs:sequence>
347 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
348 </xs:sequence>
349 <xs:attribute name="name" type="xs:string" use="required"/>
350 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
351 <xs:attribute name="disable" type="xs:boolean" use="optional"/>
352 <xs:attribute name="info" type="xs:string" use="optional"/>
353 <xs:anyAttribute processContents="lax"/>
354 </xs:complexType>
355
356 <!-- SequencesType -->
357 <xs:complexType name="SequencesType">
358 <xs:sequence>
359 <xs:element name="sequence" type="SequenceType" minOccurs="1" maxOccurs="unbounded"/>
360 </xs:sequence>
361 <xs:anyAttribute processContents="lax"/>
362 </xs:complexType>
363
364 <!-- DebugType -->
365 <xs:complexType name="DebugType">
366 <xs:sequence>
367 <xs:element name="datapatch" type="DataPatchType" minOccurs="0" maxOccurs="unbounded"/>
368 </xs:sequence>
369 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
370 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/> <!-- access port index -->
371 <xs:attribute name="address" type="NonNegativeInteger" use="optional"/> <!-- CPU debug block base address -->
372 <xs:attribute name="svd" type="xs:string" use="optional"/>
373 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
374 <xs:attribute name="Punit" type="xs:unsignedInt" use="optional"/>
375 <xs:attribute name="defaultResetSequence" type="xs:string" use="optional"/>
376 <xs:anyAttribute processContents="lax"/>
377 </xs:complexType>
378
379 <!-- SerialWireType -->
380 <xs:complexType name="SerialWireType">
381 <xs:anyAttribute processContents="lax"/>
382 </xs:complexType>
383
384 <!-- TracePortType -->
385 <xs:complexType name="TracePortType">
386 <xs:attribute name="width" type="NonNegativeInteger" use="optional"/>
387 <xs:anyAttribute processContents="skip"/>
388 </xs:complexType>
389
390 <!-- TraceBufferType -->
391 <xs:complexType name="TraceBufferType">
392 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
393 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
394 <xs:anyAttribute processContents="skip"/>
395 </xs:complexType>
396
397 <!-- TraceType -->
398 <xs:complexType name="TraceType">
399 <xs:sequence>
400 <xs:element name="serialwire" type="SerialWireType" minOccurs="0" maxOccurs="unbounded"/>
401 <xs:element name="traceport" type="TracePortType" minOccurs="0" maxOccurs="unbounded"/>
402 <xs:element name="tracebuffer" type="TraceBufferType" minOccurs="0" maxOccurs="unbounded"/>
403 </xs:sequence>
404 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
405 <xs:anyAttribute processContents="lax"/>
406 </xs:complexType>
407
408 <!-- Memory Type-->
409 <xs:complexType name="MemoryType">
410 <!-- Pname identifies the processor this setting belongs to -->
411 <xs:attribute name="Pname" type="RestrictedString"/>
412 <!-- id specifies the enumerated ID of memory (deprecated in 1.4.4) -->
413 <xs:attribute name="id" type="MemoryIDTypeEnum" use="optional"/>
414 <!-- name specifies an identifier being use to refer to this memory range description (added in 1.4.4) -->
415 <xs:attribute name="name" type="RestrictedString" use="optional"/>
416 <!-- start specifies the base address of the memory -->
417 <xs:attribute name="start" type="NonNegativeInteger" use="required"/>
418 <!-- size specifies the size of the memory -->
419 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
420 <!-- access: specifies the access permissions of the memory (added in 1.4.4) -->
421 <xs:attribute name="access" type="AccessType" use="optional" default="r"/>
422 <!-- alias: reference to another memory by 'name' to express that the same physical memory is mapped at another address (added in 1.4.4) -->
423 <xs:attribute name="alias" type="RestrictedString" use="optional"/>
424 <!-- !!! deprecated, do not use / ignore !!! specifies whether the memory shall be 0 initialized -->
425 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
426 <!-- specifies whether the memory is used as default by linker -->
427 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
428 <!-- specifies whether the memory shall be used for the startup by linker -->
429 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
430 </xs:complexType>
431
432 <!-- Algorithm Type -->
433 <xs:complexType name="AlgorithmType">
434 <!-- Pname identifies the processor this setting belongs to -->
435 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
436 <!-- name specifies the path and filename of the Flash Programming Algorithm -->
437 <xs:attribute name="name" type="xs:string" use="required"/>
438 <!-- start specifies the base address of the memory range that gets programmed -->
439 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
440 <!-- size specifies the size of the memory range that gets programmed -->
441 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
442 <!-- RAMstart specifies the base address in RAM from where the algorithm is executed -->
443 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
444 <!-- RAMsize specifies the available RAM for executing the algorithm -->
445 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
446 <!-- if default is set the algorithm will be configured for any new project -->
447 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
448 <!-- style attribute: specifies the programming algorithm format (added in 1.4.4) -->
449 <xs:attribute name="style" type="AlgorithmStyleType" use="optional" default="Keil"/>
450 <!-- parameter attribute: parmeter passed on algorithm invocation (added in 1.4.4) -->
451 <xs:attribute name="parameter" type="xs:string" use="optional"/>
452 <!-- endian attribute: specifies the endianess of the algorithm (added in 1.4.4) -->
453 <xs:attribute name="endian" type="DendianEnum" use="optional" default="Little-endian"/>
454 </xs:complexType>
455
456 <!-- Book Type -->
457 <xs:complexType name="BookType">
458 <!-- Pname identifies the processor this setting belongs to -->
459 <xs:attribute name="Pname" type="RestrictedString"/>
460 <!-- name specifies the path and filename of the document -->
461 <xs:attribute name="name" type="xs:string" use="required"/>
462 <!-- title specifies the string displayed for this document -->
463 <xs:attribute name="title" type="xs:string" use="required"/>
464 </xs:complexType>
465
466 <!-- Description Type-->
467 <xs:complexType name="DescriptionType">
468 <xs:simpleContent>
469 <xs:extension base="xs:string">
470 <!-- Pname identifies the processor this setting belongs to -->
471 <xs:attribute name="Pname" type="RestrictedString"/>
472 </xs:extension>
473 </xs:simpleContent>
474 </xs:complexType>
475
476 <!-- Device Feature Type -->
477 <xs:complexType name="DeviceFeatureType">
478 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
479 <!-- <xs:attribute name="type" type="DeviceFeatureTypeEnum" use="required"/> -->
480 <xs:attribute name="type" type="xs:string" use="required"/>
481 <xs:attribute name="n" type="xs:decimal" use="optional"/>
482 <xs:attribute name="m" type="xs:decimal" use="optional"/>
483 <xs:attribute name="name" type="xs:string" use="optional"/>
484 <!-- deprecated, only for backwards compatibility -->
485 <xs:attribute name="count" type="xs:int" use="optional"/>
486 </xs:complexType>
487
488 <!-- Board Feature Type -->
489 <xs:complexType name="BoardFeatureType">
490 <!-- <xs:attribute name="type" type="BoardFeatureTypeEnum" use="required"/> -->
491 <xs:attribute name="type" type="xs:string" use="required"/>
492 <xs:attribute name="n" type="xs:decimal" use="optional"/>
493 <xs:attribute name="m" type="xs:decimal" use="optional"/>
494 <xs:attribute name="name" type="xs:string" use="optional"/>
495 </xs:complexType>
496
497 <!-- Environment Type -->
498 <xs:complexType name="EnvironmentType">
499 <xs:sequence>
500 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
501 </xs:sequence>
502 <!-- name identifies the environment (e.g. "uv" for uVision ) this setting belongs to -->
503 <xs:attribute name="name" type="xs:string" use="required"/>
504 <!-- Pname identifies the processor this setting belongs to -->
505 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
506 <xs:anyAttribute></xs:anyAttribute>
507 </xs:complexType>
508
509 <!-- Default Device Properties Group -->
510 <xs:group name="DefaultDevicePropertiesGroup">
511 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
512 <xs:choice>
513 <xs:element name="compile" type="CompileType" />
514 <xs:element name="memory" type="MemoryType" />
515 <xs:element name="algorithm" type="AlgorithmType" />
516 <xs:element name="book" type="BookType" />
517 <xs:element name="description" type="DescriptionType" />
518 <xs:element name="feature" type="DeviceFeatureType" />
519 <xs:element name="environment" type="EnvironmentType" />
520 <xs:element name="debugport" type="DebugPortType" />
521 <xs:element name="debug" type="DebugType" />
522 <xs:element name="trace" type="TraceType" />
523 <xs:element name="debugvars" type="DebugVarsType" />
524 <xs:element name="sequences" type="SequencesType" />
525 </xs:choice>
526 </xs:group>
527
528 <!-- Device Properties Group -->
529 <xs:group name="DevicePropertiesGroup">
530 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
531 <xs:sequence>
532 <xs:element name="processor" type="ProcessorType" minOccurs="0" maxOccurs="unbounded"/>
533 <xs:element name="debugconfig" type="DebugConfigType" minOccurs="0" maxOccurs="1"/>
534 <xs:group ref="DefaultDevicePropertiesGroup" minOccurs="0" maxOccurs="unbounded"/>
535 </xs:sequence>
536 </xs:group>
537
538 <xs:complexType name="DeviceType">
539 <xs:sequence>
540 <xs:group ref="DevicePropertiesGroup"/>
541 <!-- Variant Level begin-->
542 <xs:element name="variant" minOccurs="0" maxOccurs="unbounded">
543 <xs:complexType>
544 <xs:sequence>
545 <xs:group ref="DevicePropertiesGroup"/>
546 </xs:sequence>
547 <xs:attribute name="Dvariant" type="RestrictedString" use="required"/>
548 </xs:complexType>
549 </xs:element>
550 <!-- Variant Level end -->
551 </xs:sequence>
552 <xs:attribute name="Dname" type="RestrictedString" use="required"/>
553 <!-- <xs:attributeGroup ref="DefaultDeviceAttributesGroup"/> -->
554 </xs:complexType>
555
556 <!-- Dcore enumeration type -->
557 <xs:simpleType name="DcoreEnum">
558 <xs:restriction base="xs:token">
559 <xs:enumeration value="SC000"/>
560 <xs:enumeration value="SC300"/>
561 <xs:enumeration value="Cortex-M0"/>
562 <xs:enumeration value="Cortex-M0+"/>
563 <xs:enumeration value="Cortex-M1"/>
564 <xs:enumeration value="Cortex-M3"/>
565 <xs:enumeration value="Cortex-M4"/>
566 <xs:enumeration value="Cortex-M7"/>
567 <xs:enumeration value="Cortex-R4"/>
568 <xs:enumeration value="Cortex-R5"/>
569 <xs:enumeration value="Cortex-A5"/>
570 <xs:enumeration value="Cortex-A7"/>
571 <xs:enumeration value="Cortex-A8"/>
572 <xs:enumeration value="Cortex-A9"/>
573 <xs:enumeration value="Cortex-A15"/>
574 <xs:enumeration value="Cortex-A17"/>
575 <xs:enumeration value="Cortex-A53"/>
576 <xs:enumeration value="Cortex-A57"/>
577 <xs:enumeration value="Cortex-A72"/>
578 <xs:enumeration value="ARMV8MBL"/>
579 <xs:enumeration value="ARMV8MML"/>
580 <xs:enumeration value="other"/>
581 </xs:restriction>
582 </xs:simpleType>
583
584
585 <!-- DeviceFeatureTypeEnum -->
586 <xs:simpleType name="DeviceFeatureTypeEnum">
587 <xs:restriction base="xs:token">
588 <xs:enumeration value="Crypto"/>
589 <xs:enumeration value="NVIC"/>
590 <xs:enumeration value="DMA"/>
591 <xs:enumeration value="RNG"/>
592 <xs:enumeration value="CoreOther"/>
593 <xs:enumeration value="ExtBus"/>
594 <xs:enumeration value="Memory"/>
595 <xs:enumeration value="MemoryOther"/>
596 <xs:enumeration value="XTAL"/>
597 <xs:enumeration value="IntRC"/>
598 <xs:enumeration value="PLL"/>
599 <xs:enumeration value="RTC"/>
600 <xs:enumeration value="ClockOther"/>
601 <xs:enumeration value="PowerMode"/>
602 <xs:enumeration value="VCC"/>
603 <xs:enumeration value="Consumption"/>
604 <xs:enumeration value="PowerOther"/>
605 <xs:enumeration value="BGA"/>
606 <xs:enumeration value="CSP"/>
607 <xs:enumeration value="PLCC"/>
608 <xs:enumeration value="QFN"/>
609 <xs:enumeration value="QFP"/>
610 <xs:enumeration value="SOP"/>
611 <xs:enumeration value="DIP"/>
612 <xs:enumeration value="PackageOther"/>
613 <xs:enumeration value="IOs"/>
614 <xs:enumeration value="ExtInt"/>
615 <xs:enumeration value="Temp"/>
616 <xs:enumeration value="ADC"/>
617 <xs:enumeration value="DAC"/>
618 <xs:enumeration value="TempSens"/>
619 <xs:enumeration value="AnalogOther"/>
620 <xs:enumeration value="PWM"/>
621 <xs:enumeration value="Timer"/>
622 <xs:enumeration value="WDT"/>
623 <xs:enumeration value="TimerOther"/>
624 <xs:enumeration value="MPSerial"/>
625 <xs:enumeration value="CAN"/>
626 <xs:enumeration value="ETH"/>
627 <xs:enumeration value="I2C"/>
628 <xs:enumeration value="I2S"/>
629 <xs:enumeration value="LIN"/>
630 <xs:enumeration value="SDIO"/>
631 <xs:enumeration value="SPI"/>
632 <xs:enumeration value="UART"/>
633 <xs:enumeration value="USART"/>
634 <xs:enumeration value="USBD"/>
635 <xs:enumeration value="USBH"/>
636 <xs:enumeration value="USBOTG"/>
637 <xs:enumeration value="ComOther"/>
638 <xs:enumeration value="Camera"/>
639 <xs:enumeration value="GLCD"/>
640 <xs:enumeration value="LCD"/>
641 <xs:enumeration value="Touch"/>
642 <xs:enumeration value="Other"/>
643 <!-- deprecated, only for backwards compatibility -->
644 <xs:enumeration value="I/O"/>
645 <xs:enumeration value="D/A"/>
646 <xs:enumeration value="A/D"/>
647 <xs:enumeration value="Com"/>
648 <xs:enumeration value="USB"/>
649 <xs:enumeration value="Package"/>
650 <xs:enumeration value="Backup"/>
651 </xs:restriction>
652 </xs:simpleType>
653
654 <!-- BoardFeatureTypeEnum -->
655 <xs:simpleType name="BoardFeatureTypeEnum">
656 <xs:restriction base="xs:token">
657 <xs:enumeration value="ODbg"/>
658 <xs:enumeration value="XTAL"/>
659 <xs:enumeration value="PWR"/>
660 <xs:enumeration value="PWR"/>
661 <xs:enumeration value="PWRSock"/>
662 <xs:enumeration value="Batt"/>
663 <xs:enumeration value="Curr"/>
664 <xs:enumeration value="CoreOther"/>
665 <xs:enumeration value="RAM"/>
666 <xs:enumeration value="ROM"/>
667 <xs:enumeration value="Memory"/>
668 <xs:enumeration value="MemCard"/>
669 <xs:enumeration value="MemoryOther"/>
670 <xs:enumeration value="DIO"/>
671 <xs:enumeration value="AIO"/>
672 <xs:enumeration value="Proto"/>
673 <xs:enumeration value="USB"/>
674 <xs:enumeration value="ETH"/>
675 <xs:enumeration value="SPI"/>
676 <xs:enumeration value="I2C"/>
677 <xs:enumeration value="RS232"/>
678 <xs:enumeration value="RS422"/>
679 <xs:enumeration value="RS485"/>
680 <xs:enumeration value="CAN"/>
681 <xs:enumeration value="IrDA"/>
682 <xs:enumeration value="LineIn"/>
683 <xs:enumeration value="LineOut"/>
684 <xs:enumeration value="MIC"/>
685 <xs:enumeration value="Edge"/>
686 <xs:enumeration value="ConnOther"/>
687 <xs:enumeration value="Button"/>
688 <xs:enumeration value="Poti"/>
689 <xs:enumeration value="Joystick"/>
690 <xs:enumeration value="Touch"/>
691 <xs:enumeration value="ContOther"/>
692 <xs:enumeration value="Accelerometer"/>
693 <xs:enumeration value="Gyro"/>
694 <xs:enumeration value="Compass"/>
695 <xs:enumeration value="TempSens"/>
696 <xs:enumeration value="PressSens"/>
697 <xs:enumeration value="LightSens"/>
698 <xs:enumeration value="SensOther"/>
699 <xs:enumeration value="CustomFF"/>
700 <xs:enumeration value="ArduinoFF"/>
701 <xs:enumeration value="FreedomFF"/>
702 <xs:enumeration value="TowerFF"/>
703 <xs:enumeration value="LED"/>
704 <xs:enumeration value="Camera"/>
705 <xs:enumeration value="LCD"/>
706 <xs:enumeration value="GLCD"/>
707 <xs:enumeration value="Speaker"/>
708 <xs:enumeration value="Other"/>
709 </xs:restriction>
710 </xs:simpleType>
711
712 <!-- eraseTypeEnum -->
713 <xs:simpleType name="EraseTypeEnum">
714 <xs:restriction base="xs:token">
715 <xs:enumeration value="sector"/>
716 <xs:enumeration value="full"/>
717 <xs:enumeration value="no"/>
718 </xs:restriction>
719 </xs:simpleType>
720
721 <!-- MemoryIDTypeEnum -->
722 <xs:simpleType name="MemoryIDTypeEnum">
723 <xs:restriction base="xs:token">
724 <xs:enumeration value="IRAM1"/>
725 <xs:enumeration value="IRAM2"/>
726 <xs:enumeration value="IRAM3"/>
727 <xs:enumeration value="IRAM4"/>
728 <xs:enumeration value="IRAM5"/>
729 <xs:enumeration value="IRAM6"/>
730 <xs:enumeration value="IRAM7"/>
731 <xs:enumeration value="IRAM8"/>
732 <xs:enumeration value="IROM1"/>
733 <xs:enumeration value="IROM2"/>
734 <xs:enumeration value="IROM3"/>
735 <xs:enumeration value="IROM4"/>
736 <xs:enumeration value="IROM5"/>
737 <xs:enumeration value="IROM6"/>
738 <xs:enumeration value="IROM7"/>
739 <xs:enumeration value="IROM8"/>
740 </xs:restriction>
741 </xs:simpleType>
742
743 <!-- Dendian enumeration type -->
744 <xs:simpleType name="DendianEnum">
745 <xs:restriction base="xs:token">
746 <xs:enumeration value="Little-endian"/>
747 <xs:enumeration value="Big-endian"/>
748 <xs:enumeration value="Configurable"/>
749 <xs:enumeration value="*"/>
750 </xs:restriction>
751 </xs:simpleType>
752
753 <!-- Dfpu enumeration type -->
754 <xs:simpleType name="DfpuEnum">
755 <xs:restriction base="xs:token">
756 <!-- core has FPU (type of FPU depends on Dcore) -->
757 <xs:enumeration value="FPU"/>
758 <xs:enumeration value="1"/>
759 <!-- core has no FPU -->
760 <xs:enumeration value="NO_FPU"/>
761 <xs:enumeration value="0"/>
762 <!-- single precision FPU -->
763 <xs:enumeration value="SP_FPU"/>
764 <!-- double precision FPU -->
765 <xs:enumeration value="DP_FPU"/>
766 <!-- any -->
767 <xs:enumeration value="*"/>
768 </xs:restriction>
769 </xs:simpleType>
770
771 <!-- Dmpu enumeration type -->
772 <xs:simpleType name="DmpuEnum">
773 <xs:restriction base="xs:token">
774 <xs:enumeration value="MPU"/>
775 <xs:enumeration value="NO_MPU"/>
776 <xs:enumeration value="0"/>
777 <xs:enumeration value="1"/>
778 <xs:enumeration value="*"/>
779 </xs:restriction>
780 </xs:simpleType>
781
782 <!-- file category type -->
783 <xs:simpleType name="FileCategoryType">
784 <xs:restriction base="xs:token">
785 <xs:enumeration value="doc"/>
786 <xs:enumeration value="header"/>
787 <xs:enumeration value="include"/>
788 <xs:enumeration value="library"/>
789 <xs:enumeration value="object"/>
790 <xs:enumeration value="source"/>
791 <xs:enumeration value="sourceC"/>
792 <xs:enumeration value="sourceCpp"/>
793 <xs:enumeration value="sourceAsm"/>
794 <xs:enumeration value="linkerScript"/>
795 <xs:enumeration value="utility"/>
796 <xs:enumeration value="image"/>
797 <xs:enumeration value="other"/>
798 </xs:restriction>
799 </xs:simpleType>
800
801 <!-- file attribute type -->
802 <xs:simpleType name="FileAttributeType">
803 <xs:restriction base="xs:token">
804 <xs:enumeration value="config"/>
805 <xs:enumeration value="copy"/>
806 <xs:enumeration value="template"/>
807 <xs:enumeration value="interface"/>
808 </xs:restriction>
809 </xs:simpleType>
810
811
812 <!-- compiler toolchain enumeration -->
813 <xs:simpleType name="CompilerEnumType">
814 <xs:restriction base="xs:token">
815 <xs:enumeration value="GCC"/>
816 <xs:enumeration value="ARMCC"/>
817 <xs:enumeration value="IAR"/>
818 <xs:enumeration value="Tasking"/>
819 <xs:enumeration value="GHS"/>
820 <xs:enumeration value="Cosmic"/>
821 <xs:enumeration value="G++"/> <!-- Code Sourcery -->
822 <xs:enumeration value="*"/>
823 </xs:restriction>
824 </xs:simpleType>
825 <!-- compiler output enumeration -->
826 <xs:simpleType name="CompilerOutputType">
827 <xs:restriction base="xs:token">
828 <xs:enumeration value="exe"/> <!-- executable -->
829 <xs:enumeration value="lib"/> <!-- library -->
830 <xs:enumeration value="*"/>
831 </xs:restriction>
832 </xs:simpleType>
833
834
835
836 <xs:complexType name="FilterType">
837 <xs:attribute name="Dfamily" type="xs:string"/> <!-- deprecated as they are too weak for filtering -->
838 <xs:attribute name="DsubFamily" type="xs:string"/> <!-- deprecated as tehy are too weak for filtering -->
839 <xs:attribute name="Dvariant" type="xs:string"/>
840 <xs:attribute name="Dvendor" type="DeviceVendorEnum"/>
841 <xs:attribute name="Dname" type="xs:string"/> <!-- can contain wildcards ?* in condition -->
842 <xs:attribute name="Dcore" type="DcoreEnum"/>
843 <xs:attribute name="Dfpu" type="DfpuEnum"/>
844 <xs:attribute name="Dmpu" type="DmpuEnum"/>
845 <xs:attribute name="Dendian" type="DendianEnum"/>
846 <xs:attribute name="Pname" type="RestrictedString"/>
847 <xs:attribute name="Cvendor" type="xs:string"/>
848 <xs:attribute name="Cbundle" type="xs:string"/>
849 <xs:attribute name="Cclass" type="CclassType"/>
850 <xs:attribute name="Cgroup" type="CgroupType"/>
851 <xs:attribute name="Csub" type="CsubType"/>
852 <xs:attribute name="Cvariant" type="CvariantType"/>
853 <xs:attribute name="Cversion" type="ConditionVersionType"/>
854 <xs:attribute name="Capiversion" type="ConditionVersionType"/>
855 <xs:attribute name="Tcompiler" type="CompilerEnumType"/>
856 <xs:attribute name="Toutput" type="CompilerOutputType"/>
857 <xs:attribute name="condition" type="xs:string"/>
858 </xs:complexType>
859
860 <!-- taxonomy description type definition -->
861 <xs:complexType name="TaxonomyDescriptionType">
862 <xs:simpleContent>
863 <xs:extension base='xs:string'>
864 <xs:attribute name="Cclass" type="CclassType" use="required"/> <!-- Class the description is associated with -->
865 <xs:attribute name="Cgroup" type="CgroupType" use="optional"/> <!-- Group the description is associated with -->
866 <xs:attribute name="doc" type="xs:string" use="optional"/> <!-- link to documentation for the :Class:[Group] -->
867 <xs:attribute name="generator" type="xs:string" use="optional"/> <!-- link a generator to a taxonomy -->
868 </xs:extension>
869 </xs:simpleContent>
870 </xs:complexType>
871
872 <xs:complexType name="TaxonomyType">
873 <xs:sequence>
874 <xs:element name="description" type="TaxonomyDescriptionType" minOccurs="1" maxOccurs="unbounded"/>
875 </xs:sequence>
876 </xs:complexType>
877
878 <!-- API type definition -->
879 <xs:complexType name="ApiType">
880 <xs:sequence>
881 <xs:element name="description" type="xs:string" minOccurs="0"/>
882 <!-- list of files / content -->
883 <xs:element name="files">
884 <xs:complexType>
885 <xs:sequence>
886 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
887 </xs:sequence>
888 </xs:complexType>
889 </xs:element>
890 </xs:sequence>
891 <xs:attribute name="Cclass" type="CclassType" use="required"/>
892 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
893 <xs:attribute name="exclusive" type="xs:boolean" use="optional" default="1"/>
894 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
895 </xs:complexType>
896
897 <xs:complexType name="ApisType">
898 <xs:sequence>
899 <xs:element name="api" type="ApiType" minOccurs="1" maxOccurs="unbounded"/>
900 </xs:sequence>
901 </xs:complexType>
902
903 <xs:complexType name="ConditionType">
904 <xs:sequence>
905 <xs:element name="description" type="xs:string" minOccurs="0"/>
906 <xs:choice minOccurs="1" maxOccurs="unbounded">
907 <xs:element name="accept" type="FilterType"/>
908 <xs:element name="require" type="FilterType"/>
909 <xs:element name="deny" type="FilterType"/>
910 </xs:choice>
911 </xs:sequence>
912 <xs:attribute name="id" type="xs:string" use="required"/>
913 </xs:complexType>
914
915 <xs:complexType name="ConditionsType">
916 <xs:sequence>
917 <xs:element name="condition" type="ConditionType" minOccurs="1" maxOccurs="unbounded"/>
918 </xs:sequence>
919 </xs:complexType>
920
921 <xs:complexType name="ComponentCategoryType">
922 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
923 <xs:attribute name="Cbundle" type="xs:string" use="optional"/>
924 <xs:attribute name="Cclass" type="CclassType" use="required"/>
925 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
926 <xs:attribute name="Csub" type="CsubType" use="optional"/>
927 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
928 <xs:attribute name="Cversion" type="ConditionVersionType" use="optional"/>
929 <xs:attribute name="Capiversion" type="ConditionVersionType" use="optional"/>
930 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
931 </xs:complexType>
932
933 <xs:complexType name="ExampleProjectType">
934 <xs:sequence>
935 <xs:element name="environment" maxOccurs="unbounded">
936 <xs:complexType>
937 <xs:attribute name="name" type="xs:string" use="required"/>
938 <xs:attribute name="load" type="xs:string" use="required"/>
939 </xs:complexType>
940 </xs:element>
941 </xs:sequence>
942 </xs:complexType>
943
944 <xs:complexType name="BoardReferenceType">
945 <xs:attribute name="name" type="xs:string" use="required"/> <!-- refers to Board Description by name -->
946 <xs:attribute name="vendor" type="xs:string" use="required"/> <!-- refers to Board Description by vendor -->
947 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/> <!-- deprecated in 1.2 -->
948 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
949 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
950 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
951 </xs:complexType>
952
953 <xs:complexType name="CompatibleDeviceType">
954 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
955 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/>
956 <xs:attribute name="Dfamily" type="xs:string" use="optional"/>
957 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/>
958 <xs:attribute name="Dname" type="xs:string" use="optional"/>
959 </xs:complexType>
960
961 <xs:complexType name="BoardsDeviceType">
962 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
963 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
964 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
965 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
966 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
967 </xs:complexType>
968
969 <xs:simpleType name="BoardBookCategoryEnum">
970 <xs:restriction base="xs:token">
971 <xs:enumeration value="setup"/>
972 <xs:enumeration value="schematic"/>
973 <xs:enumeration value="overview"/>
974 <xs:enumeration value="manual"/>
975 <xs:enumeration value="other"/>
976 </xs:restriction>
977 </xs:simpleType>
978
979 <xs:complexType name="BoardsBookType">
980 <xs:attribute name="category" type="BoardBookCategoryEnum"/>
981 <xs:attribute name="name" type="xs:string"/>
982 <xs:attribute name="title" type="xs:string"/>
983 </xs:complexType>
984
985 <xs:complexType name="DebugInterfaceType">
986 <xs:attribute name="adapter" type="xs:string"/>
987 <xs:attribute name="connector" type="xs:string"/>
988 </xs:complexType>
989
990 <xs:group name="BoardElementsGroup">
991 <xs:choice>
992 <xs:element name="description" type="xs:string"/>
993 <xs:element name="feature" type="BoardFeatureType" maxOccurs="unbounded"></xs:element>
994 <xs:element name="mountedDevice" type="BoardsDeviceType" maxOccurs="unbounded"/>
995 <xs:element name="compatibleDevice" type="CompatibleDeviceType" maxOccurs="unbounded"/>
996 <xs:element name="image">
997 <xs:complexType>
998 <xs:attribute name="small" type="xs:string" use="optional"/>
999 <xs:attribute name="large" type="xs:string" use="optional"/>
1000 </xs:complexType>
1001 </xs:element>
1002 <xs:element name="debugInterface" type="DebugInterfaceType" maxOccurs="unbounded"/>
1003 <xs:element name="book" type="BoardsBookType" maxOccurs="unbounded"/>
1004 </xs:choice>
1005 </xs:group>
1006
1007 <xs:complexType name="BoardType">
1008 <xs:sequence>
1009 <xs:group ref="BoardElementsGroup" minOccurs="1" maxOccurs="unbounded"/>
1010 </xs:sequence>
1011 <xs:attribute name="vendor" type="xs:string" use="required"/>
1012 <xs:attribute name="name" type="xs:string" use="required"/>
1013 <xs:attribute name="revision" type="xs:string" use="optional"/>
1014 <xs:attribute name="salesContact" type="xs:string" use="optional"/>
1015 <xs:attribute name="orderForm" type="xs:anyURI" use="optional"/>
1016 </xs:complexType>
1017
1018 <xs:complexType name="BoardsType">
1019 <xs:sequence>
1020 <xs:element name="board" type="BoardType" maxOccurs="unbounded"/>
1021 </xs:sequence>
1022 </xs:complexType>
1023
1024 <xs:complexType name="ExampleAttributesType">
1025 <xs:choice maxOccurs="unbounded">
1026 <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1027 <xs:element name="component" type="ComponentCategoryType" minOccurs="0" maxOccurs="unbounded"/>
1028 <xs:element name="keyword" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1029 </xs:choice>
1030 </xs:complexType>
1031
1032 <xs:complexType name="ExampleType">
1033 <xs:sequence>
1034 <!-- brief example description -->
1035 <xs:element name="description" type="xs:string"/>
1036 <!-- references the board -->
1037 <xs:element name="board" type="BoardReferenceType" maxOccurs="unbounded"/>
1038 <!-- lists environments with their load files -->
1039 <xs:element name="project" type="ExampleProjectType"/>
1040 <!-- categories, keywords and used components -->
1041 <xs:element name="attributes" type="ExampleAttributesType" />
1042 </xs:sequence>
1043 <!-- display name of the example -->
1044 <xs:attribute name="name" type="xs:string" use="required"/>
1045 <!-- relative folder where the example is stored in the package -->
1046 <xs:attribute name="folder" type="xs:string" use="required"/>
1047 <!-- archive file name with extension located in folder -->
1048 <xs:attribute name="archive" type="xs:string" use="optional"/>
1049 <!-- file name with extension relative to folder -->
1050 <xs:attribute name="doc" type="xs:string" use="required"/>
1051 <!-- version of the example -->
1052 <xs:attribute name="version" type="xs:string" use="optional"/>
1053 </xs:complexType>
1054
1055 <!-- section listing all examples contained in the package -->
1056 <xs:complexType name="ExamplesType">
1057 <xs:sequence>
1058 <xs:element name="example" type="ExampleType" maxOccurs="unbounded"/>
1059 </xs:sequence>
1060 </xs:complexType>
1061
1062 <xs:complexType name="KeywordsType">
1063 <xs:sequence>
1064 <xs:element name="keyword" type="xs:string" maxOccurs="unbounded"/>
1065 </xs:sequence>
1066 </xs:complexType>
1067
1068 <xs:simpleType name="InstancesType">
1069 <xs:restriction base="xs:unsignedInt">
1070 <xs:minInclusive value="1"/>
1071 </xs:restriction>
1072 </xs:simpleType>
1073
1074 <!-- Component file type definition -->
1075 <xs:complexType name="FileType">
1076 <xs:attribute name="condition" type="xs:string" use="optional"/>
1077 <!-- file item category: source, header, include path, etc. -->
1078 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1079 <!-- file item action attribute : config (copy to project, template, interface) -->
1080 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1081 <!-- description for "template" or "interface" files. Multiple items are combined when they have the same select attribute -->
1082 <xs:attribute name="select" type="xs:string" use ="optional"/>
1083 <!-- path + filename + extension -->
1084 <xs:attribute name="name" type ="xs:string" use="required" />
1085 <!-- copy file to project folder: deprecated, use attr="config" instead -->
1086 <xs:attribute name="copy" type ="xs:string" use="optional"/>
1087 <!-- simple file version: to be used by RTE copy file action to see whether the file needs updating in project -->
1088 <xs:attribute name="version" type ="VersionType" use="optional"/>
1089 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1090 <xs:attribute name="src" type="xs:string" use ="optional"/>
1091 </xs:complexType>
1092
1093 <!-- some strings are used to construct filenames (e.g. package name). Such names can contain only subset of characters
1094 and must not contain neither spaces nor dots.
1095 -->
1096 <xs:simpleType name="RestrictedString">
1097 <xs:restriction base="xs:string">
1098 <xs:pattern value="[\-_A-Za-z0-9]+"/>
1099 </xs:restriction>
1100 </xs:simpleType>
1101 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1102 Important: version pattern shall remain the same while versions change
1103 -->
1104 <xs:simpleType name="VersionType">
1105 <xs:restriction base="xs:string">
1106 <xs:pattern value="[\.\-_A-Za-z0-9]+"/>
1107 </xs:restriction>
1108 </xs:simpleType>
1109
1110 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1111 Allows specifing a version range: minVersion : maxVersion
1112 -->
1113 <xs:simpleType name="ConditionVersionType">
1114 <xs:restriction base="xs:string">
1115 <xs:pattern value="[\.:\-_A-Za-z0-9]+"/>
1116 </xs:restriction>
1117 </xs:simpleType>
1118
1119 <!-- PackageType creates a unique ID for a package (added in 1.4.4) -->
1120 <xs:complexType name="PackageType">
1121 <!-- vendor of the package -->
1122 <xs:attribute name="vendor" type="xs:string" use="required"/>
1123 <!-- name of the package -->
1124 <xs:attribute name="name" type="xs:string" use="required"/>
1125 <!-- version or version range of the package -->
1126 <xs:attribute name="version" type="ConditionVersionType" use="required"/>
1127 </xs:complexType>
1128
1129 <!-- Package dependency section type (added in 1.4.4) -->
1130 <xs:complexType name="PackagesType">
1131 <xs:sequence maxOccurs="unbounded">
1132 <xs:element name="package" type="PackageType"/>
1133 </xs:sequence>
1134 </xs:complexType>
1135
1136 <!-- LanguageType creates a unique language ID (added in 1.4.4) -->
1137 <xs:complexType name="LanguageType">
1138 <!-- language name e.g. C -->
1139 <xs:attribute name="name" type="xs:string" use="required"/>
1140 <!-- language version e.g. C99 -->
1141 <xs:attribute name="version" type="xs:string" use="required"/>
1142 </xs:complexType>
1143
1144 <!-- Lanuage section type (added in 1.4.4) -->
1145 <xs:complexType name="LanguagesType">
1146 <xs:sequence maxOccurs="unbounded">
1147 <xs:element name="language" type="LanguageType"/>
1148 </xs:sequence>
1149 </xs:complexType>
1150
1151 <!-- CompilerType crates a unique toolchain ID, e.g. armcc 5.4.0 (added in 1.4.4) -->
1152 <xs:complexType name="CompilerType">
1153 <xs:attribute name="name" type="CompilerEnumType" use="required"/>
1154 <xs:attribute name="version" type="ConditionVersionType" use="required"/>
1155 </xs:complexType>
1156
1157 <!-- Compiler section type (added in 1.4.4) -->
1158 <xs:complexType name="CompilersType">
1159 <xs:sequence maxOccurs="unbounded">
1160 <xs:element name="compiler" type="CompilerType"/>
1161 </xs:sequence>
1162 </xs:complexType>
1163
1164 <!-- Requirements Section: (added in 1.4.4) -->
1165 <xs:complexType name="RequirementsType">
1166 <xs:all>
1167 <xs:element name="packages" type="PackagesType" minOccurs="0"/>
1168 <xs:element name="languages" type="LanguagesType" minOccurs="0"/>
1169 <xs:element name="compilers" type="CompilersType" minOccurs="0"/>
1170 </xs:all>
1171 </xs:complexType>
1172
1173 <!-- Project target specification: (added in 1.4.4) -->
1174 <xs:complexType name="TargetType">
1175 <xs:choice maxOccurs="unbounded">
1176 <!-- build options -->
1177 <xs:element name="output" type="OutputType"/>
1178 <!-- memory options -->
1179 <xs:element name="memory" type="TargetMemoryType" minOccurs="0" maxOccurs="unbounded"/>
1180 <!-- stack setting -->
1181 <xs:element name="stack" type="StackType" minOccurs="0" maxOccurs="1"/>
1182 <!-- heap setting -->
1183 <xs:element name="heap" type="HeapType" minOccurs="0" maxOccurs="1"/>
1184 <!-- algorithm options -->
1185 <xs:element name="algorithm" type="TargetAlgorithmType" minOccurs="0" maxOccurs="unbounded"/>
1186 <!-- debug probe selection and configuration -->
1187 <xs:element name="debugProbe" type="DebugProbeType" minOccurs="0"/>
1188 </xs:choice>
1189 <!-- Board Vendor -->
1190 <xs:attribute name="Bvendor" type="xs:string" use="optional"/>
1191 <!-- Board Name -->
1192 <xs:attribute name="Bname" type="xs:string" use="optional"/>
1193 <!-- Board Version -->
1194 <xs:attribute name="Bversion" type="xs:string" use="optional"/>
1195 <!-- Device Vendor -->
1196 <xs:attribute name="Dvendor" type="xs:string" use="optional"/>
1197 <!-- Device Name -->
1198 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1199 <!-- Processor Instance Name -->
1200 <xs:attribute name="Pname" type="xs:string" use="optional"/>
1201 <!-- FPU used in target build -->
1202 <xs:attribute name="Dfpu" type="DfpuEnum" use="optional"/>
1203 <!-- Endianess used in target build -->
1204 <xs:attribute name="Dendian" type="DendianEnum" use="optional"/>
1205 <!-- MPU used in target build -->
1206 <xs:attribute name="Dmpu" type="DmpuEnum" use="optional"/>
1207 </xs:complexType>
1208
1209 <!-- Debug probe specification: (added in 1.4.4) -->
1210 <xs:complexType name="DebugProbeType">
1211 <!-- Product Name of the debug probe-->
1212 <xs:attribute name="name" type="xs:string" use="required"/>
1213 <!-- Debug protocol selection -->
1214 <xs:attribute name="protocol" type="xs:string" use="required"/>
1215 <!-- Core clock configured by application -->
1216 <xs:attribute name="coreClock" type="NonNegativeInteger" use="required"/>
1217 <!-- TPIU clock configured-->
1218 <xs:attribute name="tpiuClock" type="NonNegativeInteger" use="optional"/>
1219 </xs:complexType>
1220
1221 <!-- Build settings for the project, setting RTE filter options (added in 1.4.4) -->
1222 <xs:complexType name="OutputType">
1223 <!-- Project output file name -->
1224 <xs:attribute name="name" type="xs:string" use="required"/>
1225 <!-- Project output library or executable -->
1226 <xs:attribute name="type" type="CompilerOutputType" use="required"/>
1227 <!-- Project build for debug -->
1228 <xs:attribute name="debug" type="xs:boolean" use="required"/>
1229 </xs:complexType>
1230
1231 <!-- Memory settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1232 <xs:complexType name="TargetMemoryType">
1233 <xs:attribute name="id" type="xs:string" use="optional"/> <!-- only use with legacy DFPs -->
1234 <!-- defines the name of the memory for reference, allows to redefine memory from DFP -->
1235 <xs:attribute name="name" type="xs:string" use="required"/>
1236 <!-- (re-)defines the start address of the memory -->
1237 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1238 <!-- (re-)defines the size in bytes of the memory -->
1239 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1240 <!-- disables the memory with the name specified by DFP -->
1241 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1242 <!-- if true, this memory is used for the startup code -->
1243 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
1244 <!-- if true, this memory is initialized with 0 -->
1245 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
1246 <!-- overrides access permisson configured by the DFP -->
1247 <xs:attribute name="access" type="AccessType" use="optional"/>
1248 <!-- specifies whether the memory is used as default by linker -->
1249 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
1250 </xs:complexType>
1251
1252 <!-- Algorithm settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1253 <xs:complexType name="TargetAlgorithmType">
1254 <!-- references the filename of the algorith, allowing to redefine attributes of algorithms in DFP -->
1255 <xs:attribute name="name" type="xs:string" use="required"/>
1256 <!-- overrides the start address programmed by named algorithm from DFP -->
1257 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1258 <!-- overrides the size programmed by named algorithm from DFP -->
1259 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1260 <!-- disables the algorithm specified as default in DFP -->
1261 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1262 <!-- overrides the RAMstart for algorithm with 'name' from DFP -->
1263 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
1264 <!-- overrides the RAMsize for algorithm with 'name' from DFP -->
1265 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
1266 </xs:complexType>
1267
1268 <!-- element specifying the stack (added in 1.4.4) -->
1269 <xs:complexType name="StackType">
1270 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1271 </xs:complexType>
1272
1273 <!-- element specifying the heap (added in 1.4.4) -->
1274 <xs:complexType name="HeapType">
1275 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1276 </xs:complexType>
1277
1278 <!-- Project file type definition (added in 1.4.4) -->
1279 <xs:complexType name="ProjectFileType">
1280 <!-- path + filename + extension -->
1281 <xs:attribute name="name" type ="xs:string" use="required" />
1282 <!-- file item category: source, header, include path, etc. -->
1283 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1284 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1285 <xs:attribute name="src" type="xs:string" use ="optional"/>
1286 </xs:complexType>
1287
1288 <!-- Group section contains a list of files and (sub-)groups (added in 1.4.4) -->
1289 <xs:complexType name="GroupType">
1290 <xs:choice maxOccurs="unbounded">
1291 <xs:element name="file" type="ProjectFileType" />
1292 <xs:element name="group" type="GroupType" />
1293 </xs:choice>
1294 <xs:attribute name="name" use="required"/>
1295 </xs:complexType>
1296
1297 <!-- Files section within the project section (added in 1.4.4) -->
1298 <xs:complexType name="ProjectFilesType">
1299 <xs:choice maxOccurs="unbounded">
1300 <xs:element name="file" type="ProjectFileType" />
1301 <xs:element name="group" type="GroupType" />
1302 </xs:choice>
1303 </xs:complexType>
1304
1305 <!-- Component selection section (added in 1.4.4) -->
1306 <xs:complexType name="ComponentSelectType">
1307 <xs:sequence>
1308 <xs:element name="component" maxOccurs="unbounded">
1309 <xs:complexType>
1310 <xs:sequence>
1311 <!-- all config files -->
1312 <xs:element name="file" minOccurs="0" maxOccurs="unbounded">
1313 <xs:complexType>
1314 <!-- condition id of the condition that evaluates to true on project creation -->
1315 <xs:attribute name="condition" type="xs:string" use="optional"/>
1316 <!-- file item category: source, header, include path, etc. -->
1317 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1318 <!-- file item action attribute : config (copy to project, template, interface) -->
1319 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1320 <!-- path + filename + extension -->
1321 <xs:attribute name="name" type ="xs:string" use="required" />
1322 <!-- configuration file version: to be used by RTE to see whether the file requires updating or not -->
1323 <xs:attribute name="version" type ="VersionType" use="required"/>
1324 </xs:complexType>
1325 </xs:element>
1326 </xs:sequence>
1327 <xs:attribute name="Cvendor" type="xs:string" use="required"/>
1328 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1329 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1330 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1331 <xs:attribute name="Csub" type="CsubType" use="required"/>
1332 <xs:attribute name="Cvariant" type="CvariantType" use="required"/>
1333 <xs:attribute name="Cversion" type="ConditionVersionType" use="required"/>
1334 <xs:attribute name="Capiversion" type="ConditionVersionType" use="optional"/> <!-- only used when component implements an API -->
1335 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
1336 </xs:complexType>
1337 </xs:element>
1338 </xs:sequence>
1339 </xs:complexType>
1340
1341 <!-- Project section: (added in 1.4.4) -->
1342 <xs:complexType name="ProjectType">
1343 <xs:all>
1344 <!-- target selection and configuration -->
1345 <xs:element name="target" type="TargetType"/>
1346 <!-- components selected for project -->
1347 <xs:element name="select" type="ComponentSelectType"/>
1348 <!-- project files not contained in components -->
1349 <xs:element name="files" type="ProjectFilesType"/>
1350 </xs:all>
1351 <!-- if no project name is provided, the filename of the GPDSC is used -->
1352 <xs:attribute name="name" type="xs:string" use="optional"/>
1353 <!-- optional link/reference to documentation about the project -->
1354 <xs:attribute name="documentation" type="xs:string" use="optional"/>
1355 </xs:complexType>
1356
1357 <!-- Create Section: (added in 1.4.4) -->
1358 <xs:complexType name="CreateType">
1359 <xs:sequence>
1360 <!-- project section -->
1361 <xs:element name="project" type="ProjectType" maxOccurs="unbounded"/>
1362 </xs:sequence>
1363 </xs:complexType>
1364
1365 <!-- release contains version as an attribute and notes as element text -->
1366 <xs:complexType name="ReleaseType">
1367 <xs:simpleContent>
1368 <xs:extension base='xs:string'>
1369 <xs:attribute name="version" type="VersionType" use="required"/>
1370 <xs:attribute name="date" type="xs:date" use="optional"/>
1371 <xs:attribute name="deprecated" type="xs:date" use="optional"/>
1372 <xs:attribute name="replacement" type="xs:string" use="optional"/>
1373 </xs:extension>
1374 </xs:simpleContent>
1375 </xs:complexType>
1376
1377 <xs:complexType name="ReleasesType">
1378 <xs:sequence>
1379 <xs:element name="release" type="ReleaseType" minOccurs="1" maxOccurs="unbounded"/>
1380 </xs:sequence>
1381 </xs:complexType>
1382
1383 <!-- Generator file type definition -->
1384 <xs:complexType name="GeneratorFileType">
1385 <!-- conditions can be used to filter relevant files depending on e.g. device name
1386 or toolchain -->
1387 <xs:attribute name="condition" type="xs:string" use="optional"/>
1388 <!-- file item category: generator specific file type -->
1389 <xs:attribute name="category" type="xs:string" use ="required"/>
1390 <!-- path + filename + extension -->
1391 <xs:attribute name="name" type ="xs:string" use="required" />
1392 <!-- file version -->
1393 <xs:attribute name="version" type ="VersionType" use="optional"/>
1394 </xs:complexType>
1395
1396 <xs:complexType name="GeneratorDeviceSelectType">
1397 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1398 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1399 <xs:attribute name="Dvariant" type="xs:string" use="optional"/>
1400 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
1401 </xs:complexType>
1402
1403 <xs:complexType name="GeneratorCommandArgumentType">
1404 <xs:simpleContent>
1405 <xs:extension base='xs:string'>
1406 <xs:attribute name="switch" type="xs:string" use="optional"/>
1407 </xs:extension>
1408 </xs:simpleContent>
1409 </xs:complexType>
1410
1411 <xs:complexType name="GeneratorCommandArgumentsType">
1412 <xs:sequence>
1413 <xs:element name="argument" type="GeneratorCommandArgumentType" minOccurs="0" maxOccurs="unbounded"/>
1414 </xs:sequence>
1415 </xs:complexType>
1416
1417 <xs:complexType name="GpdscFileType">
1418 <xs:attribute name="name" type="xs:string" use="required"/>
1419 </xs:complexType>
1420
1421 <!-- Generator Type -->
1422 <xs:complexType name="GeneratorType">
1423 <xs:all>
1424 <xs:element name="description" type="xs:string"/>
1425 <xs:element name="select" type="GeneratorDeviceSelectType" minOccurs="0"/>
1426 <xs:element name="command" type="xs:string"/>
1427 <xs:element name="workingDir" type="xs:string" minOccurs="0"/>
1428 <xs:element name="arguments" type="GeneratorCommandArgumentsType" minOccurs="0"/>
1429 <xs:element name="gpdsc" type="GpdscFileType" minOccurs="0"/>
1430 <!-- list of project files / content -->
1431 <xs:element name="project_files" minOccurs="0">
1432 <xs:complexType>
1433 <xs:sequence>
1434 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1435 </xs:sequence>
1436 </xs:complexType>
1437 </xs:element>
1438 <!-- list of tool files / content -->
1439 <xs:element name="files" minOccurs="0">
1440 <xs:complexType>
1441 <xs:sequence>
1442 <!-- tool files are under sole control of the generator -->
1443 <xs:element name="file" type="GeneratorFileType" maxOccurs="unbounded"/>
1444 </xs:sequence>
1445 </xs:complexType>
1446 </xs:element>
1447 <!-- Generator tools specific section ignored by other tools -->
1448 <xs:element name="extensions" minOccurs="0">
1449 <xs:complexType>
1450 <xs:sequence>
1451 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
1452 </xs:any>
1453 </xs:sequence>
1454 </xs:complexType>
1455 </xs:element>
1456 </xs:all>
1457 <xs:attribute name="id" type="xs:string" use ="required"/>
1458 <xs:attribute name="Gvendor" type="xs:string" use ="optional"/>
1459 <xs:attribute name="Gtool" type="xs:string" use ="optional"/>
1460 <xs:attribute name="Gversion" type="xs:string" use ="optional"/>
1461 </xs:complexType>
1462
1463 <!-- Generators Section -->
1464 <xs:complexType name="GeneratorsType">
1465 <xs:sequence>
1466 <xs:element name="generator" type="GeneratorType" minOccurs="1" maxOccurs="unbounded"/>
1467 </xs:sequence>
1468 </xs:complexType>
1469
1470 <!-- package description root point -->
1471 <xs:element name="package" nillable="true">
1472 <xs:complexType>
1473 <xs:all>
1474 <!-- name of the package (Device Support=DFP, Board Support=BSP) -->
1475 <xs:element name="name" type="RestrictedString" minOccurs="1"/>
1476 <!-- company name of the developer/maintainer of this package -->
1477 <xs:element name="vendor" type="RestrictedString" minOccurs="1"/>
1478 <!-- brief description of the content and purpose of the package -->
1479 <xs:element name="description" type="xs:string" minOccurs="1"/>
1480 <!-- download location of this PDSC and corresponding package file -->
1481 <xs:element name="url" type="xs:anyURI" minOccurs="1"/>
1482 <!-- e.g. mailto:Support@<vendor>.com or www.<vendor>.com/supportRequest -->
1483 <xs:element name="supportContact" type="xs:string" minOccurs="0"/>
1484 <!-- optional: click through license file name and relative path -->
1485 <xs:element name="license" type="xs:string" minOccurs="0"/>
1486 <!-- optional: section listing requirements (1.4.2) -->
1487 <xs:element name="requirements" type="RequirementsType" minOccurs="0"/>
1488 <!-- optional: section used for tool independant project creation (one shot) -->
1489 <xs:element name="create" type="CreateType" minOccurs="0"/>
1490 <!-- Version numbers and release history -->
1491 <xs:element name="releases" type="ReleasesType" minOccurs="1"/>
1492 <!-- keyword for Search Engine Indexing (e.g. Google) -->
1493 <xs:element name="keywords" type="KeywordsType" minOccurs="0"/>
1494 <!-- generators are tools and utilities that are used to generate software components -->
1495 <xs:element name="generators" type="GeneratorsType" minOccurs="0"/>
1496 <!-- definition of devices including references to device support files contained in package -->
1497 <xs:element name="devices" minOccurs="0">
1498 <xs:complexType>
1499 <!-- top level -->
1500 <xs:sequence>
1501 <!-- Family Level begin -->
1502 <xs:element name="family" maxOccurs="unbounded">
1503 <xs:complexType>
1504 <xs:sequence>
1505 <xs:group ref="DevicePropertiesGroup"/>
1506 <xs:element name="device" type="DeviceType" minOccurs="0" maxOccurs="unbounded"/>
1507 <!-- Sub Family Level begin-->
1508 <xs:element name="subFamily" minOccurs="0" maxOccurs="unbounded">
1509 <xs:complexType>
1510 <xs:sequence>
1511 <xs:group ref="DevicePropertiesGroup"/>
1512 <!-- Device Level begin-->
1513 <xs:element name="device" type="DeviceType" maxOccurs="unbounded"/>
1514 <!-- Device Level end -->
1515 </xs:sequence>
1516 <xs:attribute name="DsubFamily" type="xs:string" use="required"/>
1517 </xs:complexType>
1518 </xs:element>
1519 <!-- Sub Family Level end -->
1520 </xs:sequence>
1521 <xs:attribute name="Dfamily" type="xs:string" use="required"/>
1522 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1523 </xs:complexType>
1524 </xs:element>
1525 <!-- Family Level end -->
1526 </xs:sequence>
1527 </xs:complexType>
1528 </xs:element>
1529 <!-- devices end -->
1530 <!-- definition of boards. Can be referenced by examples -->
1531 <xs:element name="boards" type="BoardsType" minOccurs="0"/>
1532 <!-- boards end -->
1533 <!-- taxonomy section contains default descriptions used in the entire model -->
1534 <xs:element name="taxonomy" type="TaxonomyType" minOccurs="0"/>
1535 <!-- apis section contains api descriptions used in the entire model -->
1536 <xs:element name="apis" type="ApisType" minOccurs="0"/>
1537 <!-- conditions section contains all condition entries used by any component of the package -->
1538 <xs:element name="conditions" type="ConditionsType" minOccurs="0"/>
1539 <!-- examples section defining examples available within a package -->
1540 <xs:element name="examples" type="ExamplesType" minOccurs="0"/>
1541 <!-- software component definition -->
1542 <xs:element name="components" minOccurs="0">
1543 <xs:complexType>
1544 <xs:choice minOccurs="1" maxOccurs="unbounded">
1545 <!-- COMPONENT Description Root Point: -->
1546 <xs:element name="bundle" minOccurs="1" maxOccurs="unbounded">
1547 <xs:complexType>
1548 <xs:sequence>
1549 <xs:element name="description" type="xs:string"/>
1550 <xs:element name="doc" type="xs:string"/>
1551 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1552 <xs:complexType>
1553 <xs:sequence>
1554 <!-- a component can be deprecated if it is no longer maintained-->
1555 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1556 <!-- short component description displayed -->
1557 <xs:element name="description" type="xs:string"/>
1558 <!-- content to be added to generated RTE_Component.h file -->
1559 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1560 <!-- list of files / content -->
1561 <xs:element name="files">
1562 <xs:complexType>
1563 <xs:sequence>
1564 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1565 </xs:sequence>
1566 </xs:complexType>
1567 </xs:element>
1568 </xs:sequence>
1569 <!-- component identity attributes Cclass Cvendor and Cversion are specified by bundle -->
1570 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1571 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1572 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1573 <!-- api version for this component -->
1574 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
1575 <!-- component attribute for referencing a condition specified in conditions section above -->
1576 <xs:attribute name="condition" type="xs:string" use="optional"/>
1577 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1578 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1579 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1580 <xs:attribute name="generator" type="xs:string" use="optional"/>
1581 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1582 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1583 </xs:complexType>
1584 </xs:element>
1585 </xs:sequence>
1586 <!-- bundle attributes -->
1587 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1588 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1589 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1590 <xs:attribute name="Cversion" type="VersionType" use="required"/>
1591 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1592 <xs:attribute name="generator" type="xs:string" use="optional"/>
1593 <!-- identifies this bundle variant to be the preferred variant [Version 1.4.0] -->
1594 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1595 </xs:complexType>
1596 </xs:element>
1597 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1598 <xs:complexType>
1599 <xs:sequence>
1600 <!-- a component can be deprecated if it is no longer maintained-->
1601 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1602 <!-- short component description displayed -->
1603 <xs:element name="description" type="xs:string"/>
1604 <!-- content to be added to generated RTE_Component.h file -->
1605 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1606 <!-- list of files / content -->
1607 <xs:element name="files">
1608 <xs:complexType>
1609 <xs:sequence>
1610 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1611 </xs:sequence>
1612 </xs:complexType>
1613 </xs:element>
1614 </xs:sequence>
1615 <!-- component identity attributes -->
1616 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1617 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1618 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1619 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1620 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1621 <xs:attribute name="Cversion" type="VersionType" use="required"/>
1622 <!-- api version for this component -->
1623 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
1624 <!-- component attribute for referencing a condition specified in conditions section above -->
1625 <xs:attribute name="condition" type="xs:string" use="optional"/>
1626 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1627 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1628 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1629 <xs:attribute name="generator" type="xs:string" use="optional"/>
1630 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1631 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1632 </xs:complexType>
1633 </xs:element>
1634 </xs:choice>
1635 <xs:attribute name="generator" type="xs:string" use="optional"/>
1636 </xs:complexType>
1637 </xs:element>
1638 </xs:all>
1639 <xs:attribute name="schemaVersion" type="VersionType" use="required"/>
1640 </xs:complexType>
1641 </xs:element>
1642</xs:schema>