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