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