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