blob: 5b38012526f053a87aa09da8b7428eb44c964c3d [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 Krech7ed31db2017-02-02 21:51:59 +010021 $Revision: 1.4.9
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"/>
Christopher Seidlcd95b242017-02-22 15:19:28 +0100146 <xs:enumeration value="ONSemiconductor:141"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200147 <xs:enumeration value="Panasonic:131"/>
148 <xs:enumeration value="Realtek Semiconductor:124"/>
149 <xs:enumeration value="Redpine Signals:125"/>
150 <xs:enumeration value="Renesas:117"/>
151 <xs:enumeration value="ROHM:103"/>
152 <xs:enumeration value="Samsung:47"/>
Christopher Seidl24f8d132016-11-10 07:50:54 +0100153 <xs:enumeration value="Silergy Corp:139"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200154 <xs:enumeration value="Silicon Labs:21"/>
155 <xs:enumeration value="SONiX:110"/>
156 <xs:enumeration value="Spansion:100"/>
157 <xs:enumeration value="STMicroelectronics:13"/>
158 <xs:enumeration value="Sunrise Micro Devices:121"/>
159 <xs:enumeration value="TI:16"/>
160 <xs:enumeration value="Texas Instruments:16"/>
161 <xs:enumeration value="Toshiba:92"/>
162 <xs:enumeration value="Triad Semiconductor:104"/>
Joachim Krech199f8df2016-08-29 16:46:44 +0200163 <xs:enumeration value="Vorago:137"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200164 <xs:enumeration value="WIZnet:122"/>
165 <xs:enumeration value="Xinnova:135"/>
Joachim Krech996ee322016-07-27 08:59:55 +0200166 <xs:enumeration value="Zilog:89"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200167 <!-- deprecated: do not use -->
168 <xs:enumeration value="Freescale:78"/>
169 <xs:enumeration value="Freescale Semiconductor:78"/>
170 <xs:enumeration value="NXP (founded by Philips):11"/>
171 </xs:restriction>
172 </xs:simpleType>
173
174 <!-- AlgorithmStyleType: allow support of different flash programming algorithm styles -->
175 <xs:simpleType name="AlgorithmStyleType">
176 <xs:restriction base="xs:token">
177 <xs:enumeration value="Keil"/>
178 <xs:enumeration value="IAR"/>
179 <xs:enumeration value="CMSIS"/>
180 </xs:restriction>
181 </xs:simpleType>
182
183 <!-- Component Class Name Type: specify your own Class in taxonomy -->
184 <xs:simpleType name="CclassType">
185 <xs:restriction base="xs:string">
186 <xs:minLength value="3"/>
187 <xs:maxLength value="32"/>
Joachim Kreche66f42b2017-02-02 17:03:31 +0100188 <xs:pattern value="\S(.*\S)?"></xs:pattern>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200189 </xs:restriction>
190 </xs:simpleType>
191
Joachim Kreche66f42b2017-02-02 17:03:31 +0100192 <!-- Component Group Name Type (no leading or trailing spaces allowed) -->
Joachim Krechdfe628f2016-07-01 15:36:52 +0200193 <xs:simpleType name="CgroupType">
194 <xs:restriction base="xs:string">
195 <xs:minLength value="3"/>
196 <xs:maxLength value="32"/>
Joachim Kreche66f42b2017-02-02 17:03:31 +0100197 <xs:pattern value="\S(.*\S)?"></xs:pattern>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200198 </xs:restriction>
199 </xs:simpleType>
200
201 <!-- Component Sub Name Type -->
202 <xs:simpleType name="CsubType">
203 <xs:restriction base="xs:string">
204 <xs:minLength value="0"/>
205 <xs:maxLength value="32"/>
Joachim Krech03005d62017-04-26 10:53:26 +0200206 <!-- <xs:pattern value="\S(.*\S)?"></xs:pattern> not backward compatible -->
Joachim Krechdfe628f2016-07-01 15:36:52 +0200207 </xs:restriction>
208 </xs:simpleType>
209
210 <!-- Component Variant Name Type -->
211 <xs:simpleType name="CvariantType">
212 <xs:restriction base="xs:string">
213 <xs:minLength value="3"/>
214 <xs:maxLength value="32"/>
Joachim Kreche66f42b2017-02-02 17:03:31 +0100215 <xs:pattern value="\S(.*\S)?"></xs:pattern>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200216 </xs:restriction>
217 </xs:simpleType>
218
219 <!-- AccessType (added in 1.4.4) -->
220 <xs:simpleType name="AccessType">
221 <xs:restriction base="xs:string">
222 <xs:pattern value="[rwxpsnc]+"/>
223 </xs:restriction>
224 </xs:simpleType>
225
226 <!-- Processor Type -->
227 <xs:complexType name="ProcessorType">
228 <!-- Pname defines an identifier for a specific processor in a multi-processor devices -->
229 <xs:attribute name="Pname" type="RestrictedString"/>
230 <!-- Punits specifies the number of processing units in a symmetric multi-processor core -->
231 <xs:attribute name="Punits" type="InstancesType"/>
232 <!-- Dcore specifies the processor from a list of supported processors -->
233 <xs:attribute name="Dcore" type="DcoreEnum"/>
234 <!-- Dfpu specifies the hardware floating point unit -->
235 <xs:attribute name="Dfpu" type="DfpuEnum"/>
236 <!-- Dmpu specifies the memory protection unit -->
237 <xs:attribute name="Dmpu" type="DmpuEnum"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +0200238 <!-- Dtz specifies the processor TrustZone support -->
239 <xs:attribute name="Dtz" type="DtzEnum"/>
240 <!-- Tdsp specifies the processor support for DSP instructions -->
241 <xs:attribute name="Ddsp" type="DdspEnum"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200242 <!-- Dendian specifies the endianess supported by the processor -->
243 <xs:attribute name="Dendian" type="DendianEnum"/>
244 <!-- Dclock specifies the maximum core clock frequency -->
245 <xs:attribute name="Dclock" type="xs:unsignedInt"/>
246 <!-- DcoreVersion specifies the revision of the processor -->
247 <xs:attribute name="DcoreVersion" type="xs:string"/>
248 </xs:complexType>
249
250 <!-- Compile Type: -->
251 <xs:complexType name="CompileType">
252 <!-- Pname identifies the processor this setting belongs to -->
253 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
254 <!-- CMSIS-CORE device header file (sets compiler include path) -->
255 <xs:attribute name="header" type="xs:string"/>
256 <!-- Device specific preprocessor define (sets preprocessor define -->
257 <xs:attribute name="define" type="xs:string"/>
258 <!-- Processor instance specific preprocessor define (sets preprocessor define on the commandline) -->
259 <xs:attribute name="Pdefine" type="xs:string"/>
260 </xs:complexType>
261
262 <!-- DebugVarsType -->
263 <xs:complexType name="DebugVarsType">
264 <xs:simpleContent>
265 <xs:extension base="xs:string">
266 <xs:attribute name="configfile" type="xs:string" use="optional"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +0200267 <xs:attribute name="version" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200268 <xs:attribute name="Pname" type="xs:string" use="optional"/>
269 <xs:anyAttribute processContents="lax"/>
270 </xs:extension>
271 </xs:simpleContent>
272 </xs:complexType>
273
274 <!-- DebugProtocolEnum -->
275 <xs:simpleType name="DebugProtocolEnum">
276 <xs:restriction base="xs:token">
277 <xs:enumeration value="jtag"/>
278 <xs:enumeration value="cjtag"/>
279 <xs:enumeration value="swd"/>
280 </xs:restriction>
281 </xs:simpleType>
282
283 <!-- DebugConfigType -->
284 <xs:complexType name="DebugConfigType">
285 <xs:attribute name="default" type="DebugProtocolEnum" use="optional" default="swd"/>
286 <xs:attribute name="clock" type="xs:unsignedInt" use="optional"/>
287 <xs:attribute name="swj" type="xs:boolean" use="optional"/>
288 <!-- Debugger System Description File -->
289 <xs:attribute name="sdf" type="xs:string" use="optional"/>
290 <xs:anyAttribute processContents="lax"/>
291 </xs:complexType>
292
293 <!-- JtagType -->
294 <xs:complexType name="JtagType">
295 <xs:attribute name="tapindex" type="NonNegativeInteger" use="optional"/>
296 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
297 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
298 <xs:attribute name="irlen" type="xs:unsignedInt" use="optional"/>
299 <xs:anyAttribute processContents="lax"/>
300 </xs:complexType>
301
302 <!-- SwdType -->
303 <xs:complexType name="SwdType">
304 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
305 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
306 <xs:anyAttribute processContents="lax"/>
307 </xs:complexType>
308
309 <!-- DebugPortType -->
310 <xs:complexType name="DebugPortType">
311 <xs:sequence>
312 <xs:element name="jtag" type="JtagType" minOccurs="0" maxOccurs="1"/>
313 <xs:element name="swd" type="SwdType" minOccurs="0" maxOccurs="1"/>
314 </xs:sequence>
315 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
316 <xs:anyAttribute processContents="lax"/>
317 </xs:complexType>
318
319 <!-- DataPatchAccessTypeEnum enumeration type -->
320 <xs:simpleType name="DataPatchAccessTypeEnum">
321 <xs:restriction base="xs:token">
322 <xs:enumeration value="DP"/>
323 <xs:enumeration value="AP"/>
324 <xs:enumeration value="Mem"/>
325 </xs:restriction>
326 </xs:simpleType>
327
328 <!-- ExpressionType -->
329 <xs:simpleType name="ExpressionType">
330 <xs:restriction base="xs:string"/>
331 </xs:simpleType>
332
333 <!-- DataPatchType -->
334 <xs:complexType name="DataPatchType">
335 <xs:attribute name="type" type="DataPatchAccessTypeEnum" use="optional"/>
336 <xs:attribute name="address" type="NonNegativeInteger" use="required"/>
337 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
338 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/>
339 <xs:attribute name="value" type="NonNegativeInteger" use="required"/>
340 <xs:attribute name="mask" type="NonNegativeInteger" use="optional"/>
341 <xs:attribute name="info" type="xs:string" use="optional"/>
342 <xs:anyAttribute processContents="lax"/>
343 </xs:complexType>
344
345 <!-- BlockType -->
346 <xs:complexType name="SequenceBlockType">
347 <xs:simpleContent>
348 <xs:extension base="xs:string">
349 <xs:attribute name="atomic" type="xs:boolean" use="optional"/>
350 <xs:attribute name="info" type="xs:string" use="optional"/>
351 <xs:anyAttribute processContents="lax"/>
352 </xs:extension>
353 </xs:simpleContent>
354 </xs:complexType>
355
356 <!-- ControlType -->
357 <xs:complexType name="SequenceControlType">
358 <xs:sequence>
359 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
360 </xs:sequence>
361 <xs:attribute name="if" type="xs:string" use="optional"/>
362 <xs:attribute name="while" type="ExpressionType" use="optional"/>
363 <xs:attribute name="timeout" type="xs:unsignedInt" use="optional"/>
364 <xs:attribute name="info" type="xs:string" use="optional"/>
365 <xs:anyAttribute processContents="lax"/>
366 </xs:complexType>
367
368 <!-- SequenceElementType -->
369 <xs:group name="SequenceElementGroup">
370 <xs:choice>
371 <xs:element name="block" type="SequenceBlockType"/>
372 <xs:element name="control" type="SequenceControlType"/>
373 </xs:choice>
374 </xs:group>
375
376
377 <!-- SequenceType -->
378 <xs:complexType name="SequenceType">
379 <xs:sequence>
380 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
381 </xs:sequence>
382 <xs:attribute name="name" type="xs:string" use="required"/>
383 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
384 <xs:attribute name="disable" type="xs:boolean" use="optional"/>
385 <xs:attribute name="info" type="xs:string" use="optional"/>
386 <xs:anyAttribute processContents="lax"/>
387 </xs:complexType>
388
389 <!-- SequencesType -->
390 <xs:complexType name="SequencesType">
391 <xs:sequence>
392 <xs:element name="sequence" type="SequenceType" minOccurs="1" maxOccurs="unbounded"/>
393 </xs:sequence>
394 <xs:anyAttribute processContents="lax"/>
395 </xs:complexType>
396
397 <!-- DebugType -->
398 <xs:complexType name="DebugType">
399 <xs:sequence>
400 <xs:element name="datapatch" type="DataPatchType" minOccurs="0" maxOccurs="unbounded"/>
401 </xs:sequence>
402 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
403 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/> <!-- access port index -->
404 <xs:attribute name="address" type="NonNegativeInteger" use="optional"/> <!-- CPU debug block base address -->
405 <xs:attribute name="svd" type="xs:string" use="optional"/>
406 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
407 <xs:attribute name="Punit" type="xs:unsignedInt" use="optional"/>
408 <xs:attribute name="defaultResetSequence" type="xs:string" use="optional"/>
409 <xs:anyAttribute processContents="lax"/>
410 </xs:complexType>
411
412 <!-- SerialWireType -->
413 <xs:complexType name="SerialWireType">
414 <xs:anyAttribute processContents="lax"/>
415 </xs:complexType>
416
417 <!-- TracePortType -->
418 <xs:complexType name="TracePortType">
419 <xs:attribute name="width" type="NonNegativeInteger" use="optional"/>
420 <xs:anyAttribute processContents="skip"/>
421 </xs:complexType>
422
423 <!-- TraceBufferType -->
424 <xs:complexType name="TraceBufferType">
425 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
426 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
427 <xs:anyAttribute processContents="skip"/>
428 </xs:complexType>
429
430 <!-- TraceType -->
431 <xs:complexType name="TraceType">
432 <xs:sequence>
433 <xs:element name="serialwire" type="SerialWireType" minOccurs="0" maxOccurs="unbounded"/>
434 <xs:element name="traceport" type="TracePortType" minOccurs="0" maxOccurs="unbounded"/>
435 <xs:element name="tracebuffer" type="TraceBufferType" minOccurs="0" maxOccurs="unbounded"/>
436 </xs:sequence>
437 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
438 <xs:anyAttribute processContents="lax"/>
439 </xs:complexType>
440
441 <!-- Memory Type-->
442 <xs:complexType name="MemoryType">
443 <!-- Pname identifies the processor this setting belongs to -->
444 <xs:attribute name="Pname" type="RestrictedString"/>
445 <!-- id specifies the enumerated ID of memory (deprecated in 1.4.4) -->
446 <xs:attribute name="id" type="MemoryIDTypeEnum" use="optional"/>
447 <!-- name specifies an identifier being use to refer to this memory range description (added in 1.4.4) -->
448 <xs:attribute name="name" type="RestrictedString" use="optional"/>
449 <!-- start specifies the base address of the memory -->
450 <xs:attribute name="start" type="NonNegativeInteger" use="required"/>
451 <!-- size specifies the size of the memory -->
452 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
453 <!-- access: specifies the access permissions of the memory (added in 1.4.4) -->
454 <xs:attribute name="access" type="AccessType" use="optional" default="r"/>
455 <!-- alias: reference to another memory by 'name' to express that the same physical memory is mapped at another address (added in 1.4.4) -->
456 <xs:attribute name="alias" type="RestrictedString" use="optional"/>
457 <!-- !!! deprecated, do not use / ignore !!! specifies whether the memory shall be 0 initialized -->
458 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
459 <!-- specifies whether the memory is used as default by linker -->
460 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
461 <!-- specifies whether the memory shall be used for the startup by linker -->
462 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
463 </xs:complexType>
464
465 <!-- Algorithm Type -->
466 <xs:complexType name="AlgorithmType">
467 <!-- Pname identifies the processor this setting belongs to -->
468 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
469 <!-- name specifies the path and filename of the Flash Programming Algorithm -->
470 <xs:attribute name="name" type="xs:string" use="required"/>
471 <!-- start specifies the base address of the memory range that gets programmed -->
472 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
473 <!-- size specifies the size of the memory range that gets programmed -->
474 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
475 <!-- RAMstart specifies the base address in RAM from where the algorithm is executed -->
476 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
477 <!-- RAMsize specifies the available RAM for executing the algorithm -->
478 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
479 <!-- if default is set the algorithm will be configured for any new project -->
480 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
481 <!-- style attribute: specifies the programming algorithm format (added in 1.4.4) -->
482 <xs:attribute name="style" type="AlgorithmStyleType" use="optional" default="Keil"/>
483 <!-- parameter attribute: parmeter passed on algorithm invocation (added in 1.4.4) -->
484 <xs:attribute name="parameter" type="xs:string" use="optional"/>
485 <!-- endian attribute: specifies the endianess of the algorithm (added in 1.4.4) -->
486 <xs:attribute name="endian" type="DendianEnum" use="optional" default="Little-endian"/>
487 </xs:complexType>
488
489 <!-- Book Type -->
490 <xs:complexType name="BookType">
491 <!-- Pname identifies the processor this setting belongs to -->
492 <xs:attribute name="Pname" type="RestrictedString"/>
493 <!-- name specifies the path and filename of the document -->
494 <xs:attribute name="name" type="xs:string" use="required"/>
495 <!-- title specifies the string displayed for this document -->
496 <xs:attribute name="title" type="xs:string" use="required"/>
Joachim Krechd8797692016-11-07 17:09:00 +0100497 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
498 <!-- links to web pages are assumed public -->
499 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200500 </xs:complexType>
501
502 <!-- Description Type-->
503 <xs:complexType name="DescriptionType">
504 <xs:simpleContent>
505 <xs:extension base="xs:string">
506 <!-- Pname identifies the processor this setting belongs to -->
507 <xs:attribute name="Pname" type="RestrictedString"/>
508 </xs:extension>
509 </xs:simpleContent>
510 </xs:complexType>
511
512 <!-- Device Feature Type -->
513 <xs:complexType name="DeviceFeatureType">
514 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
515 <!-- <xs:attribute name="type" type="DeviceFeatureTypeEnum" use="required"/> -->
516 <xs:attribute name="type" type="xs:string" use="required"/>
517 <xs:attribute name="n" type="xs:decimal" use="optional"/>
518 <xs:attribute name="m" type="xs:decimal" use="optional"/>
519 <xs:attribute name="name" type="xs:string" use="optional"/>
520 <!-- deprecated, only for backwards compatibility -->
521 <xs:attribute name="count" type="xs:int" use="optional"/>
522 </xs:complexType>
523
524 <!-- Board Feature Type -->
525 <xs:complexType name="BoardFeatureType">
526 <!-- <xs:attribute name="type" type="BoardFeatureTypeEnum" use="required"/> -->
527 <xs:attribute name="type" type="xs:string" use="required"/>
528 <xs:attribute name="n" type="xs:decimal" use="optional"/>
529 <xs:attribute name="m" type="xs:decimal" use="optional"/>
530 <xs:attribute name="name" type="xs:string" use="optional"/>
531 </xs:complexType>
532
533 <!-- Environment Type -->
534 <xs:complexType name="EnvironmentType">
535 <xs:sequence>
536 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
537 </xs:sequence>
538 <!-- name identifies the environment (e.g. "uv" for uVision ) this setting belongs to -->
539 <xs:attribute name="name" type="xs:string" use="required"/>
540 <!-- Pname identifies the processor this setting belongs to -->
541 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
542 <xs:anyAttribute></xs:anyAttribute>
543 </xs:complexType>
544
545 <!-- Default Device Properties Group -->
546 <xs:group name="DefaultDevicePropertiesGroup">
547 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
548 <xs:choice>
549 <xs:element name="compile" type="CompileType" />
550 <xs:element name="memory" type="MemoryType" />
551 <xs:element name="algorithm" type="AlgorithmType" />
552 <xs:element name="book" type="BookType" />
553 <xs:element name="description" type="DescriptionType" />
554 <xs:element name="feature" type="DeviceFeatureType" />
555 <xs:element name="environment" type="EnvironmentType" />
556 <xs:element name="debugport" type="DebugPortType" />
557 <xs:element name="debug" type="DebugType" />
558 <xs:element name="trace" type="TraceType" />
559 <xs:element name="debugvars" type="DebugVarsType" />
560 <xs:element name="sequences" type="SequencesType" />
561 </xs:choice>
562 </xs:group>
563
564 <!-- Device Properties Group -->
565 <xs:group name="DevicePropertiesGroup">
566 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
567 <xs:sequence>
568 <xs:element name="processor" type="ProcessorType" minOccurs="0" maxOccurs="unbounded"/>
569 <xs:element name="debugconfig" type="DebugConfigType" minOccurs="0" maxOccurs="1"/>
570 <xs:group ref="DefaultDevicePropertiesGroup" minOccurs="0" maxOccurs="unbounded"/>
571 </xs:sequence>
572 </xs:group>
573
574 <xs:complexType name="DeviceType">
575 <xs:sequence>
576 <xs:group ref="DevicePropertiesGroup"/>
577 <!-- Variant Level begin-->
578 <xs:element name="variant" minOccurs="0" maxOccurs="unbounded">
579 <xs:complexType>
580 <xs:sequence>
581 <xs:group ref="DevicePropertiesGroup"/>
582 </xs:sequence>
Joachim Krech6ccd9852016-07-12 16:05:11 +0200583 <xs:attribute name="Dvariant" type="RestrictedStringDname" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200584 </xs:complexType>
585 </xs:element>
586 <!-- Variant Level end -->
587 </xs:sequence>
Joachim Krech6ccd9852016-07-12 16:05:11 +0200588 <xs:attribute name="Dname" type="RestrictedStringDname" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200589 <!-- <xs:attributeGroup ref="DefaultDeviceAttributesGroup"/> -->
590 </xs:complexType>
591
592 <!-- Dcore enumeration type -->
593 <xs:simpleType name="DcoreEnum">
594 <xs:restriction base="xs:token">
595 <xs:enumeration value="SC000"/>
596 <xs:enumeration value="SC300"/>
597 <xs:enumeration value="Cortex-M0"/>
598 <xs:enumeration value="Cortex-M0+"/>
599 <xs:enumeration value="Cortex-M1"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +0200600 <xs:enumeration value="Cortex-M23"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200601 <xs:enumeration value="Cortex-M3"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +0200602 <xs:enumeration value="Cortex-M33"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200603 <xs:enumeration value="Cortex-M4"/>
604 <xs:enumeration value="Cortex-M7"/>
Joachim Krechd8797692016-11-07 17:09:00 +0100605 <xs:enumeration value="ARMV8MBL"/>
606 <xs:enumeration value="ARMV8MML"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200607 <xs:enumeration value="Cortex-R4"/>
608 <xs:enumeration value="Cortex-R5"/>
Joachim Krechd8797692016-11-07 17:09:00 +0100609 <xs:enumeration value="Cortex-R7"/>
610 <xs:enumeration value="Cortex-R8"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200611 <xs:enumeration value="Cortex-A5"/>
612 <xs:enumeration value="Cortex-A7"/>
613 <xs:enumeration value="Cortex-A8"/>
614 <xs:enumeration value="Cortex-A9"/>
615 <xs:enumeration value="Cortex-A15"/>
616 <xs:enumeration value="Cortex-A17"/>
617 <xs:enumeration value="Cortex-A53"/>
618 <xs:enumeration value="Cortex-A57"/>
619 <xs:enumeration value="Cortex-A72"/>
Joachim Krechd8797692016-11-07 17:09:00 +0100620 <xs:enumeration value="Cortex-A73"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200621 <xs:enumeration value="other"/>
622 </xs:restriction>
623 </xs:simpleType>
624
Joachim Krechdfe628f2016-07-01 15:36:52 +0200625 <!-- DeviceFeatureTypeEnum -->
626 <xs:simpleType name="DeviceFeatureTypeEnum">
627 <xs:restriction base="xs:token">
628 <xs:enumeration value="Crypto"/>
629 <xs:enumeration value="NVIC"/>
630 <xs:enumeration value="DMA"/>
631 <xs:enumeration value="RNG"/>
632 <xs:enumeration value="CoreOther"/>
633 <xs:enumeration value="ExtBus"/>
634 <xs:enumeration value="Memory"/>
635 <xs:enumeration value="MemoryOther"/>
636 <xs:enumeration value="XTAL"/>
637 <xs:enumeration value="IntRC"/>
638 <xs:enumeration value="PLL"/>
639 <xs:enumeration value="RTC"/>
640 <xs:enumeration value="ClockOther"/>
641 <xs:enumeration value="PowerMode"/>
642 <xs:enumeration value="VCC"/>
643 <xs:enumeration value="Consumption"/>
644 <xs:enumeration value="PowerOther"/>
645 <xs:enumeration value="BGA"/>
646 <xs:enumeration value="CSP"/>
647 <xs:enumeration value="PLCC"/>
648 <xs:enumeration value="QFN"/>
649 <xs:enumeration value="QFP"/>
650 <xs:enumeration value="SOP"/>
651 <xs:enumeration value="DIP"/>
652 <xs:enumeration value="PackageOther"/>
653 <xs:enumeration value="IOs"/>
654 <xs:enumeration value="ExtInt"/>
655 <xs:enumeration value="Temp"/>
656 <xs:enumeration value="ADC"/>
657 <xs:enumeration value="DAC"/>
658 <xs:enumeration value="TempSens"/>
659 <xs:enumeration value="AnalogOther"/>
660 <xs:enumeration value="PWM"/>
661 <xs:enumeration value="Timer"/>
662 <xs:enumeration value="WDT"/>
663 <xs:enumeration value="TimerOther"/>
664 <xs:enumeration value="MPSerial"/>
665 <xs:enumeration value="CAN"/>
666 <xs:enumeration value="ETH"/>
667 <xs:enumeration value="I2C"/>
668 <xs:enumeration value="I2S"/>
669 <xs:enumeration value="LIN"/>
670 <xs:enumeration value="SDIO"/>
671 <xs:enumeration value="SPI"/>
672 <xs:enumeration value="UART"/>
673 <xs:enumeration value="USART"/>
674 <xs:enumeration value="USBD"/>
675 <xs:enumeration value="USBH"/>
676 <xs:enumeration value="USBOTG"/>
677 <xs:enumeration value="ComOther"/>
678 <xs:enumeration value="Camera"/>
679 <xs:enumeration value="GLCD"/>
680 <xs:enumeration value="LCD"/>
681 <xs:enumeration value="Touch"/>
682 <xs:enumeration value="Other"/>
683 <!-- deprecated, only for backwards compatibility -->
684 <xs:enumeration value="I/O"/>
685 <xs:enumeration value="D/A"/>
686 <xs:enumeration value="A/D"/>
687 <xs:enumeration value="Com"/>
688 <xs:enumeration value="USB"/>
689 <xs:enumeration value="Package"/>
690 <xs:enumeration value="Backup"/>
691 </xs:restriction>
692 </xs:simpleType>
693
694 <!-- BoardFeatureTypeEnum -->
695 <xs:simpleType name="BoardFeatureTypeEnum">
696 <xs:restriction base="xs:token">
697 <xs:enumeration value="ODbg"/>
698 <xs:enumeration value="XTAL"/>
699 <xs:enumeration value="PWR"/>
700 <xs:enumeration value="PWR"/>
701 <xs:enumeration value="PWRSock"/>
702 <xs:enumeration value="Batt"/>
703 <xs:enumeration value="Curr"/>
704 <xs:enumeration value="CoreOther"/>
705 <xs:enumeration value="RAM"/>
706 <xs:enumeration value="ROM"/>
707 <xs:enumeration value="Memory"/>
708 <xs:enumeration value="MemCard"/>
709 <xs:enumeration value="MemoryOther"/>
710 <xs:enumeration value="DIO"/>
711 <xs:enumeration value="AIO"/>
712 <xs:enumeration value="Proto"/>
713 <xs:enumeration value="USB"/>
714 <xs:enumeration value="ETH"/>
715 <xs:enumeration value="SPI"/>
716 <xs:enumeration value="I2C"/>
717 <xs:enumeration value="RS232"/>
718 <xs:enumeration value="RS422"/>
719 <xs:enumeration value="RS485"/>
720 <xs:enumeration value="CAN"/>
721 <xs:enumeration value="IrDA"/>
722 <xs:enumeration value="LineIn"/>
723 <xs:enumeration value="LineOut"/>
724 <xs:enumeration value="MIC"/>
725 <xs:enumeration value="Edge"/>
726 <xs:enumeration value="ConnOther"/>
727 <xs:enumeration value="Button"/>
728 <xs:enumeration value="Poti"/>
729 <xs:enumeration value="Joystick"/>
730 <xs:enumeration value="Touch"/>
731 <xs:enumeration value="ContOther"/>
732 <xs:enumeration value="Accelerometer"/>
733 <xs:enumeration value="Gyro"/>
734 <xs:enumeration value="Compass"/>
735 <xs:enumeration value="TempSens"/>
736 <xs:enumeration value="PressSens"/>
737 <xs:enumeration value="LightSens"/>
738 <xs:enumeration value="SensOther"/>
739 <xs:enumeration value="CustomFF"/>
740 <xs:enumeration value="ArduinoFF"/>
741 <xs:enumeration value="FreedomFF"/>
742 <xs:enumeration value="TowerFF"/>
743 <xs:enumeration value="LED"/>
744 <xs:enumeration value="Camera"/>
745 <xs:enumeration value="LCD"/>
746 <xs:enumeration value="GLCD"/>
747 <xs:enumeration value="Speaker"/>
748 <xs:enumeration value="Other"/>
749 </xs:restriction>
750 </xs:simpleType>
751
752 <!-- eraseTypeEnum -->
753 <xs:simpleType name="EraseTypeEnum">
754 <xs:restriction base="xs:token">
755 <xs:enumeration value="sector"/>
756 <xs:enumeration value="full"/>
757 <xs:enumeration value="no"/>
758 </xs:restriction>
759 </xs:simpleType>
760
761 <!-- MemoryIDTypeEnum -->
762 <xs:simpleType name="MemoryIDTypeEnum">
763 <xs:restriction base="xs:token">
764 <xs:enumeration value="IRAM1"/>
765 <xs:enumeration value="IRAM2"/>
766 <xs:enumeration value="IRAM3"/>
767 <xs:enumeration value="IRAM4"/>
768 <xs:enumeration value="IRAM5"/>
769 <xs:enumeration value="IRAM6"/>
770 <xs:enumeration value="IRAM7"/>
771 <xs:enumeration value="IRAM8"/>
772 <xs:enumeration value="IROM1"/>
773 <xs:enumeration value="IROM2"/>
774 <xs:enumeration value="IROM3"/>
775 <xs:enumeration value="IROM4"/>
776 <xs:enumeration value="IROM5"/>
777 <xs:enumeration value="IROM6"/>
778 <xs:enumeration value="IROM7"/>
779 <xs:enumeration value="IROM8"/>
780 </xs:restriction>
781 </xs:simpleType>
782
783 <!-- Dendian enumeration type -->
784 <xs:simpleType name="DendianEnum">
785 <xs:restriction base="xs:token">
786 <xs:enumeration value="Little-endian"/>
787 <xs:enumeration value="Big-endian"/>
788 <xs:enumeration value="Configurable"/>
789 <xs:enumeration value="*"/>
790 </xs:restriction>
791 </xs:simpleType>
792
793 <!-- Dfpu enumeration type -->
794 <xs:simpleType name="DfpuEnum">
795 <xs:restriction base="xs:token">
796 <!-- core has FPU (type of FPU depends on Dcore) -->
797 <xs:enumeration value="FPU"/>
798 <xs:enumeration value="1"/>
799 <!-- core has no FPU -->
800 <xs:enumeration value="NO_FPU"/>
801 <xs:enumeration value="0"/>
802 <!-- single precision FPU -->
803 <xs:enumeration value="SP_FPU"/>
804 <!-- double precision FPU -->
805 <xs:enumeration value="DP_FPU"/>
806 <!-- any -->
807 <xs:enumeration value="*"/>
808 </xs:restriction>
809 </xs:simpleType>
810
811 <!-- Dmpu enumeration type -->
812 <xs:simpleType name="DmpuEnum">
813 <xs:restriction base="xs:token">
814 <xs:enumeration value="MPU"/>
815 <xs:enumeration value="NO_MPU"/>
816 <xs:enumeration value="0"/>
817 <xs:enumeration value="1"/>
818 <xs:enumeration value="*"/>
819 </xs:restriction>
820 </xs:simpleType>
821
Joachim Krech98aeaab2016-10-25 21:02:23 +0200822 <!-- Dtz TrustZone enumeration type -->
823 <xs:simpleType name="DtzEnum">
824 <xs:restriction base="xs:token">
825 <xs:enumeration value="TZ"/>
826 <xs:enumeration value="NO_TZ"/>
827 <xs:enumeration value="1"/>
828 <xs:enumeration value="0"/>
829 <xs:enumeration value="*"/>
830 </xs:restriction>
831 </xs:simpleType>
832
Joachim Krechd8797692016-11-07 17:09:00 +0100833 <!-- Dsecure enumeration type -->
834 <xs:simpleType name="DsecureEnum">
835 <xs:restriction base="xs:token">
836 <xs:enumeration value="Secure"/>
837 <xs:enumeration value="Non-secure"/>
838 <xs:enumeration value="1"/>
839 <xs:enumeration value="0"/>
840 <xs:enumeration value="*"/>
841 </xs:restriction>
842 </xs:simpleType>
843
Joachim Krech98aeaab2016-10-25 21:02:23 +0200844 <!-- Ddsp DSP extensions enumeration type -->
845 <xs:simpleType name="DdspEnum">
846 <xs:restriction base="xs:token">
847 <xs:enumeration value="DSP"/>
848 <xs:enumeration value="NO_DSP"/>
849 <xs:enumeration value="1"/>
850 <xs:enumeration value="0"/>
851 <xs:enumeration value="*"/>
852 </xs:restriction>
853 </xs:simpleType>
854
Joachim Krechdfe628f2016-07-01 15:36:52 +0200855 <!-- file category type -->
856 <xs:simpleType name="FileCategoryType">
857 <xs:restriction base="xs:token">
858 <xs:enumeration value="doc"/>
859 <xs:enumeration value="header"/>
860 <xs:enumeration value="include"/>
861 <xs:enumeration value="library"/>
862 <xs:enumeration value="object"/>
863 <xs:enumeration value="source"/>
864 <xs:enumeration value="sourceC"/>
865 <xs:enumeration value="sourceCpp"/>
866 <xs:enumeration value="sourceAsm"/>
867 <xs:enumeration value="linkerScript"/>
868 <xs:enumeration value="utility"/>
869 <xs:enumeration value="image"/>
870 <xs:enumeration value="other"/>
871 </xs:restriction>
872 </xs:simpleType>
873
874 <!-- file attribute type -->
875 <xs:simpleType name="FileAttributeType">
876 <xs:restriction base="xs:token">
877 <xs:enumeration value="config"/>
878 <xs:enumeration value="copy"/>
879 <xs:enumeration value="template"/>
880 <xs:enumeration value="interface"/>
881 </xs:restriction>
882 </xs:simpleType>
883
884
885 <!-- compiler toolchain enumeration -->
886 <xs:simpleType name="CompilerEnumType">
887 <xs:restriction base="xs:token">
888 <xs:enumeration value="GCC"/>
889 <xs:enumeration value="ARMCC"/>
890 <xs:enumeration value="IAR"/>
891 <xs:enumeration value="Tasking"/>
892 <xs:enumeration value="GHS"/>
893 <xs:enumeration value="Cosmic"/>
894 <xs:enumeration value="G++"/> <!-- Code Sourcery -->
895 <xs:enumeration value="*"/>
896 </xs:restriction>
897 </xs:simpleType>
Joachim Krechaf1d0fe2017-01-25 18:58:24 +0100898
899 <!-- compiler specific options/mode -->
900 <xs:simpleType name="CompilerOptionsEnumType">
901 <xs:restriction base="xs:token">
902 <xs:enumeration value="AC5"/>
903 <xs:enumeration value="AC6"/>
904 <xs:enumeration value="AC6LTO"/>
905 </xs:restriction>
906 </xs:simpleType>
907
Joachim Krechdfe628f2016-07-01 15:36:52 +0200908 <!-- compiler output enumeration -->
909 <xs:simpleType name="CompilerOutputType">
910 <xs:restriction base="xs:token">
911 <xs:enumeration value="exe"/> <!-- executable -->
912 <xs:enumeration value="lib"/> <!-- library -->
913 <xs:enumeration value="*"/>
914 </xs:restriction>
915 </xs:simpleType>
916
Joachim Krechdfe628f2016-07-01 15:36:52 +0200917 <xs:complexType name="FilterType">
918 <xs:attribute name="Dfamily" type="xs:string"/> <!-- deprecated as they are too weak for filtering -->
919 <xs:attribute name="DsubFamily" type="xs:string"/> <!-- deprecated as tehy are too weak for filtering -->
920 <xs:attribute name="Dvariant" type="xs:string"/>
921 <xs:attribute name="Dvendor" type="DeviceVendorEnum"/>
922 <xs:attribute name="Dname" type="xs:string"/> <!-- can contain wildcards ?* in condition -->
923 <xs:attribute name="Dcore" type="DcoreEnum"/>
924 <xs:attribute name="Dfpu" type="DfpuEnum"/>
925 <xs:attribute name="Dmpu" type="DmpuEnum"/>
Joachim Krechd8797692016-11-07 17:09:00 +0100926 <xs:attribute name="Dtz" type="DtzEnum"/>
927 <xs:attribute name="Ddsp" type="DdspEnum"/>
928 <xs:attribute name="Dsecure" type="DsecureEnum"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200929 <xs:attribute name="Dendian" type="DendianEnum"/>
930 <xs:attribute name="Pname" type="RestrictedString"/>
931 <xs:attribute name="Cvendor" type="xs:string"/>
932 <xs:attribute name="Cbundle" type="xs:string"/>
933 <xs:attribute name="Cclass" type="CclassType"/>
934 <xs:attribute name="Cgroup" type="CgroupType"/>
935 <xs:attribute name="Csub" type="CsubType"/>
936 <xs:attribute name="Cvariant" type="CvariantType"/>
937 <xs:attribute name="Cversion" type="ConditionVersionType"/>
938 <xs:attribute name="Capiversion" type="ConditionVersionType"/>
939 <xs:attribute name="Tcompiler" type="CompilerEnumType"/>
Joachim Krechaf1d0fe2017-01-25 18:58:24 +0100940 <!-- Toptions can only be used in combination with Tcompiler and the strings are predefined by the specification -->
941 <xs:attribute name="Toptions" type="CompilerOptionsEnumType"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200942 <xs:attribute name="Toutput" type="CompilerOutputType"/>
943 <xs:attribute name="condition" type="xs:string"/>
944 </xs:complexType>
945
946 <!-- taxonomy description type definition -->
947 <xs:complexType name="TaxonomyDescriptionType">
948 <xs:simpleContent>
949 <xs:extension base='xs:string'>
950 <xs:attribute name="Cclass" type="CclassType" use="required"/> <!-- Class the description is associated with -->
951 <xs:attribute name="Cgroup" type="CgroupType" use="optional"/> <!-- Group the description is associated with -->
952 <xs:attribute name="doc" type="xs:string" use="optional"/> <!-- link to documentation for the :Class:[Group] -->
953 <xs:attribute name="generator" type="xs:string" use="optional"/> <!-- link a generator to a taxonomy -->
Joachim Krechd8797692016-11-07 17:09:00 +0100954 <!-- if true, the vendor gives permission for the doc file above being extracted from the pack and displayed on a web-page -->
955 <!-- links to web pages are assumed public -->
956 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200957 </xs:extension>
958 </xs:simpleContent>
959 </xs:complexType>
960
961 <xs:complexType name="TaxonomyType">
962 <xs:sequence>
963 <xs:element name="description" type="TaxonomyDescriptionType" minOccurs="1" maxOccurs="unbounded"/>
964 </xs:sequence>
965 </xs:complexType>
966
967 <!-- API type definition -->
968 <xs:complexType name="ApiType">
969 <xs:sequence>
970 <xs:element name="description" type="xs:string" minOccurs="0"/>
971 <!-- list of files / content -->
972 <xs:element name="files">
973 <xs:complexType>
974 <xs:sequence>
975 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
976 </xs:sequence>
977 </xs:complexType>
978 </xs:element>
979 </xs:sequence>
980 <xs:attribute name="Cclass" type="CclassType" use="required"/>
981 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
982 <xs:attribute name="exclusive" type="xs:boolean" use="optional" default="1"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +0200983 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +0200984 </xs:complexType>
985
986 <xs:complexType name="ApisType">
987 <xs:sequence>
988 <xs:element name="api" type="ApiType" minOccurs="1" maxOccurs="unbounded"/>
989 </xs:sequence>
990 </xs:complexType>
991
992 <xs:complexType name="ConditionType">
993 <xs:sequence>
994 <xs:element name="description" type="xs:string" minOccurs="0"/>
Joachim Krech465bd432016-11-21 09:15:30 +0100995 <xs:choice minOccurs="0" maxOccurs="unbounded">
Joachim Krechdfe628f2016-07-01 15:36:52 +0200996 <xs:element name="accept" type="FilterType"/>
997 <xs:element name="require" type="FilterType"/>
998 <xs:element name="deny" type="FilterType"/>
999 </xs:choice>
1000 </xs:sequence>
1001 <xs:attribute name="id" type="xs:string" use="required"/>
1002 </xs:complexType>
1003
1004 <xs:complexType name="ConditionsType">
1005 <xs:sequence>
1006 <xs:element name="condition" type="ConditionType" minOccurs="1" maxOccurs="unbounded"/>
1007 </xs:sequence>
1008 </xs:complexType>
1009
1010 <xs:complexType name="ComponentCategoryType">
1011 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1012 <xs:attribute name="Cbundle" type="xs:string" use="optional"/>
1013 <xs:attribute name="Cclass" type="CclassType" use="required"/>
Joachim Krech465bd432016-11-21 09:15:30 +01001014 <xs:attribute name="Cgroup" type="CgroupType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001015 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1016 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001017 <xs:attribute name="Cversion" type="ComponentVersionType" use="optional"/>
1018 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001019 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
1020 </xs:complexType>
1021
1022 <xs:complexType name="ExampleProjectType">
1023 <xs:sequence>
1024 <xs:element name="environment" maxOccurs="unbounded">
1025 <xs:complexType>
1026 <xs:attribute name="name" type="xs:string" use="required"/>
1027 <xs:attribute name="load" type="xs:string" use="required"/>
1028 </xs:complexType>
1029 </xs:element>
1030 </xs:sequence>
1031 </xs:complexType>
1032
1033 <xs:complexType name="BoardReferenceType">
1034 <xs:attribute name="name" type="xs:string" use="required"/> <!-- refers to Board Description by name -->
1035 <xs:attribute name="vendor" type="xs:string" use="required"/> <!-- refers to Board Description by vendor -->
1036 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/> <!-- deprecated in 1.2 -->
1037 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
1038 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
1039 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
1040 </xs:complexType>
1041
1042 <xs:complexType name="CompatibleDeviceType">
1043 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
1044 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/>
1045 <xs:attribute name="Dfamily" type="xs:string" use="optional"/>
1046 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/>
1047 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1048 </xs:complexType>
1049
1050 <xs:complexType name="BoardsDeviceType">
1051 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
1052 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1053 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
1054 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
1055 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
1056 </xs:complexType>
1057
1058 <xs:simpleType name="BoardBookCategoryEnum">
1059 <xs:restriction base="xs:token">
1060 <xs:enumeration value="setup"/>
1061 <xs:enumeration value="schematic"/>
1062 <xs:enumeration value="overview"/>
1063 <xs:enumeration value="manual"/>
Joachim Krech4a03e6d2017-02-06 13:17:39 +01001064 <xs:enumeration value="layout"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001065 <xs:enumeration value="other"/>
1066 </xs:restriction>
1067 </xs:simpleType>
1068
1069 <xs:complexType name="BoardsBookType">
1070 <xs:attribute name="category" type="BoardBookCategoryEnum"/>
1071 <xs:attribute name="name" type="xs:string"/>
1072 <xs:attribute name="title" type="xs:string"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001073 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1074 <!-- links to web pages are assumed public -->
1075 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001076 </xs:complexType>
1077
1078 <xs:complexType name="DebugInterfaceType">
1079 <xs:attribute name="adapter" type="xs:string"/>
1080 <xs:attribute name="connector" type="xs:string"/>
1081 </xs:complexType>
1082
1083 <xs:group name="BoardElementsGroup">
1084 <xs:choice>
Joachim Krech465bd432016-11-21 09:15:30 +01001085 <xs:element name="description" type="xs:string" minOccurs="0"/>
1086 <xs:element name="feature" type="BoardFeatureType" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001087 <xs:element name="mountedDevice" type="BoardsDeviceType" maxOccurs="unbounded"/>
1088 <xs:element name="compatibleDevice" type="CompatibleDeviceType" maxOccurs="unbounded"/>
Joachim Krech465bd432016-11-21 09:15:30 +01001089 <xs:element name="image" minOccurs="0">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001090 <xs:complexType>
Joachim Krechd8797692016-11-07 17:09:00 +01001091 <xs:attribute name="small" type="xs:string" use="optional"/>
1092 <xs:attribute name="large" type="xs:string" use="optional"/>
1093 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1094 <!-- links to web pages are assumed public -->
1095 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001096 </xs:complexType>
1097 </xs:element>
Joachim Krech465bd432016-11-21 09:15:30 +01001098 <xs:element name="debugInterface" type="DebugInterfaceType" minOccurs="0" maxOccurs="unbounded"/>
1099 <xs:element name="book" type="BoardsBookType" minOccurs="0" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001100 </xs:choice>
1101 </xs:group>
1102
1103 <xs:complexType name="BoardType">
1104 <xs:sequence>
1105 <xs:group ref="BoardElementsGroup" minOccurs="1" maxOccurs="unbounded"/>
1106 </xs:sequence>
1107 <xs:attribute name="vendor" type="xs:string" use="required"/>
1108 <xs:attribute name="name" type="xs:string" use="required"/>
1109 <xs:attribute name="revision" type="xs:string" use="optional"/>
1110 <xs:attribute name="salesContact" type="xs:string" use="optional"/>
1111 <xs:attribute name="orderForm" type="xs:anyURI" use="optional"/>
1112 </xs:complexType>
1113
1114 <xs:complexType name="BoardsType">
1115 <xs:sequence>
1116 <xs:element name="board" type="BoardType" maxOccurs="unbounded"/>
1117 </xs:sequence>
1118 </xs:complexType>
1119
1120 <xs:complexType name="ExampleAttributesType">
1121 <xs:choice maxOccurs="unbounded">
1122 <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1123 <xs:element name="component" type="ComponentCategoryType" minOccurs="0" maxOccurs="unbounded"/>
1124 <xs:element name="keyword" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1125 </xs:choice>
1126 </xs:complexType>
1127
1128 <xs:complexType name="ExampleType">
1129 <xs:sequence>
1130 <!-- brief example description -->
1131 <xs:element name="description" type="xs:string"/>
1132 <!-- references the board -->
1133 <xs:element name="board" type="BoardReferenceType" maxOccurs="unbounded"/>
1134 <!-- lists environments with their load files -->
1135 <xs:element name="project" type="ExampleProjectType"/>
1136 <!-- categories, keywords and used components -->
1137 <xs:element name="attributes" type="ExampleAttributesType" />
1138 </xs:sequence>
1139 <!-- display name of the example -->
1140 <xs:attribute name="name" type="xs:string" use="required"/>
1141 <!-- relative folder where the example is stored in the package -->
1142 <xs:attribute name="folder" type="xs:string" use="required"/>
1143 <!-- archive file name with extension located in folder -->
1144 <xs:attribute name="archive" type="xs:string" use="optional"/>
1145 <!-- file name with extension relative to folder -->
1146 <xs:attribute name="doc" type="xs:string" use="required"/>
1147 <!-- version of the example -->
1148 <xs:attribute name="version" type="xs:string" use="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001149 <!-- if true, the vendor gives permission for the doc file being extracted from the pack and displayed on a web-page -->
1150 <!-- links to web pages are assumed public -->
1151 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001152 </xs:complexType>
1153
1154 <!-- section listing all examples contained in the package -->
1155 <xs:complexType name="ExamplesType">
1156 <xs:sequence>
1157 <xs:element name="example" type="ExampleType" maxOccurs="unbounded"/>
1158 </xs:sequence>
1159 </xs:complexType>
1160
1161 <xs:complexType name="KeywordsType">
1162 <xs:sequence>
1163 <xs:element name="keyword" type="xs:string" maxOccurs="unbounded"/>
1164 </xs:sequence>
1165 </xs:complexType>
1166
1167 <xs:simpleType name="InstancesType">
1168 <xs:restriction base="xs:unsignedInt">
1169 <xs:minInclusive value="1"/>
1170 </xs:restriction>
1171 </xs:simpleType>
1172
1173 <!-- Component file type definition -->
1174 <xs:complexType name="FileType">
1175 <xs:attribute name="condition" type="xs:string" use="optional"/>
1176 <!-- file item category: source, header, include path, etc. -->
1177 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1178 <!-- file item action attribute : config (copy to project, template, interface) -->
1179 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1180 <!-- description for "template" or "interface" files. Multiple items are combined when they have the same select attribute -->
1181 <xs:attribute name="select" type="xs:string" use ="optional"/>
1182 <!-- path + filename + extension -->
1183 <xs:attribute name="name" type ="xs:string" use="required" />
1184 <!-- copy file to project folder: deprecated, use attr="config" instead -->
1185 <xs:attribute name="copy" type ="xs:string" use="optional"/>
1186 <!-- 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 +02001187 <xs:attribute name="version" type ="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001188 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1189 <xs:attribute name="src" type="xs:string" use ="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001190 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1191 <!-- links to web pages are assumed public -->
1192 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001193 </xs:complexType>
1194
1195 <!-- some strings are used to construct filenames (e.g. package name). Such names can contain only subset of characters
1196 and must not contain neither spaces nor dots.
1197 -->
1198 <xs:simpleType name="RestrictedString">
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
Joachim Krech6ccd9852016-07-12 16:05:11 +02001204 <xs:simpleType name="RestrictedStringDname">
1205 <xs:restriction base="xs:string">
1206 <xs:pattern value="[\-_A-Za-z0-9/]+"/>
1207 </xs:restriction>
1208 </xs:simpleType>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001209
1210 <xs:simpleType name="SchemaVersionType">
1211 <xs:restriction base="xs:string">
1212 <xs:pattern value="[0-9]+\.[0-9]+((\.[0-9]+)|())"/>
1213 </xs:restriction>
1214 </xs:simpleType>
1215
1216 <xs:simpleType name="ComponentVersionType">
1217 <xs:restriction base="xs:string">
1218 <xs:pattern value="[0-9]+\.[0-9]+((\.[0-9]+)|())((\-[0-9A-Za-z_\-\.]+)|([_A-Za-z][0-9A-Za-z_\-\.]*)|())((\+[\-\._A-Za-z0-9]+)|())"/>
1219 </xs:restriction>
1220 </xs:simpleType>
1221
Joachim Krechdfe628f2016-07-01 15:36:52 +02001222 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1223 Important: version pattern shall remain the same while versions change
1224 -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001225 <xs:simpleType name="PackVersionType">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001226 <xs:restriction base="xs:string">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001227 <!-- major . minor . patch [[-]quality] [+build] -->
1228 <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 +02001229 </xs:restriction>
1230 </xs:simpleType>
1231
1232 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1233 Allows specifing a version range: minVersion : maxVersion
1234 -->
1235 <xs:simpleType name="ConditionVersionType">
1236 <xs:restriction base="xs:string">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001237 <!-- <xs:pattern value="[\.:\-_A-Za-z0-9]+"/> -->
Joachim Krech465bd432016-11-21 09:15:30 +01001238 <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 +02001239 </xs:restriction>
1240 </xs:simpleType>
1241
1242 <!-- PackageType creates a unique ID for a package (added in 1.4.4) -->
1243 <xs:complexType name="PackageType">
1244 <!-- vendor of the package -->
1245 <xs:attribute name="vendor" type="xs:string" use="required"/>
1246 <!-- name of the package -->
1247 <xs:attribute name="name" type="xs:string" use="required"/>
1248 <!-- version or version range of the package -->
Joachim Krechc6316a62016-11-10 09:46:05 +01001249 <xs:attribute name="version" type="ConditionVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001250 </xs:complexType>
1251
1252 <!-- Package dependency section type (added in 1.4.4) -->
1253 <xs:complexType name="PackagesType">
1254 <xs:sequence maxOccurs="unbounded">
1255 <xs:element name="package" type="PackageType"/>
1256 </xs:sequence>
1257 </xs:complexType>
1258
1259 <!-- LanguageType creates a unique language ID (added in 1.4.4) -->
1260 <xs:complexType name="LanguageType">
1261 <!-- language name e.g. C -->
1262 <xs:attribute name="name" type="xs:string" use="required"/>
1263 <!-- language version e.g. C99 -->
1264 <xs:attribute name="version" type="xs:string" use="required"/>
1265 </xs:complexType>
1266
1267 <!-- Lanuage section type (added in 1.4.4) -->
1268 <xs:complexType name="LanguagesType">
1269 <xs:sequence maxOccurs="unbounded">
1270 <xs:element name="language" type="LanguageType"/>
1271 </xs:sequence>
1272 </xs:complexType>
1273
1274 <!-- CompilerType crates a unique toolchain ID, e.g. armcc 5.4.0 (added in 1.4.4) -->
1275 <xs:complexType name="CompilerType">
1276 <xs:attribute name="name" type="CompilerEnumType" use="required"/>
Joachim Krechc6316a62016-11-10 09:46:05 +01001277 <xs:attribute name="version" type="xs:string" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001278 </xs:complexType>
1279
1280 <!-- Compiler section type (added in 1.4.4) -->
1281 <xs:complexType name="CompilersType">
1282 <xs:sequence maxOccurs="unbounded">
1283 <xs:element name="compiler" type="CompilerType"/>
1284 </xs:sequence>
1285 </xs:complexType>
1286
1287 <!-- Requirements Section: (added in 1.4.4) -->
1288 <xs:complexType name="RequirementsType">
1289 <xs:all>
1290 <xs:element name="packages" type="PackagesType" minOccurs="0"/>
1291 <xs:element name="languages" type="LanguagesType" minOccurs="0"/>
1292 <xs:element name="compilers" type="CompilersType" minOccurs="0"/>
1293 </xs:all>
1294 </xs:complexType>
1295
1296 <!-- Project target specification: (added in 1.4.4) -->
1297 <xs:complexType name="TargetType">
1298 <xs:choice maxOccurs="unbounded">
1299 <!-- build options -->
1300 <xs:element name="output" type="OutputType"/>
1301 <!-- memory options -->
1302 <xs:element name="memory" type="TargetMemoryType" minOccurs="0" maxOccurs="unbounded"/>
1303 <!-- stack setting -->
1304 <xs:element name="stack" type="StackType" minOccurs="0" maxOccurs="1"/>
1305 <!-- heap setting -->
1306 <xs:element name="heap" type="HeapType" minOccurs="0" maxOccurs="1"/>
1307 <!-- algorithm options -->
1308 <xs:element name="algorithm" type="TargetAlgorithmType" minOccurs="0" maxOccurs="unbounded"/>
1309 <!-- debug probe selection and configuration -->
1310 <xs:element name="debugProbe" type="DebugProbeType" minOccurs="0"/>
1311 </xs:choice>
1312 <!-- Board Vendor -->
1313 <xs:attribute name="Bvendor" type="xs:string" use="optional"/>
1314 <!-- Board Name -->
1315 <xs:attribute name="Bname" type="xs:string" use="optional"/>
1316 <!-- Board Version -->
1317 <xs:attribute name="Bversion" type="xs:string" use="optional"/>
1318 <!-- Device Vendor -->
1319 <xs:attribute name="Dvendor" type="xs:string" use="optional"/>
1320 <!-- Device Name -->
1321 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1322 <!-- Processor Instance Name -->
1323 <xs:attribute name="Pname" type="xs:string" use="optional"/>
1324 <!-- FPU used in target build -->
1325 <xs:attribute name="Dfpu" type="DfpuEnum" use="optional"/>
1326 <!-- Endianess used in target build -->
1327 <xs:attribute name="Dendian" type="DendianEnum" use="optional"/>
1328 <!-- MPU used in target build -->
1329 <xs:attribute name="Dmpu" type="DmpuEnum" use="optional"/>
1330 </xs:complexType>
1331
1332 <!-- Debug probe specification: (added in 1.4.4) -->
1333 <xs:complexType name="DebugProbeType">
1334 <!-- Product Name of the debug probe-->
1335 <xs:attribute name="name" type="xs:string" use="required"/>
1336 <!-- Debug protocol selection -->
1337 <xs:attribute name="protocol" type="xs:string" use="required"/>
1338 <!-- Core clock configured by application -->
1339 <xs:attribute name="coreClock" type="NonNegativeInteger" use="required"/>
1340 <!-- TPIU clock configured-->
1341 <xs:attribute name="tpiuClock" type="NonNegativeInteger" use="optional"/>
1342 </xs:complexType>
1343
1344 <!-- Build settings for the project, setting RTE filter options (added in 1.4.4) -->
1345 <xs:complexType name="OutputType">
1346 <!-- Project output file name -->
1347 <xs:attribute name="name" type="xs:string" use="required"/>
1348 <!-- Project output library or executable -->
1349 <xs:attribute name="type" type="CompilerOutputType" use="required"/>
1350 <!-- Project build for debug -->
1351 <xs:attribute name="debug" type="xs:boolean" use="required"/>
1352 </xs:complexType>
1353
1354 <!-- Memory settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1355 <xs:complexType name="TargetMemoryType">
1356 <xs:attribute name="id" type="xs:string" use="optional"/> <!-- only use with legacy DFPs -->
1357 <!-- defines the name of the memory for reference, allows to redefine memory from DFP -->
1358 <xs:attribute name="name" type="xs:string" use="required"/>
1359 <!-- (re-)defines the start address of the memory -->
1360 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1361 <!-- (re-)defines the size in bytes of the memory -->
1362 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1363 <!-- disables the memory with the name specified by DFP -->
1364 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1365 <!-- if true, this memory is used for the startup code -->
1366 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
1367 <!-- if true, this memory is initialized with 0 -->
1368 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
1369 <!-- overrides access permisson configured by the DFP -->
1370 <xs:attribute name="access" type="AccessType" use="optional"/>
1371 <!-- specifies whether the memory is used as default by linker -->
1372 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
1373 </xs:complexType>
1374
1375 <!-- Algorithm settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1376 <xs:complexType name="TargetAlgorithmType">
1377 <!-- references the filename of the algorith, allowing to redefine attributes of algorithms in DFP -->
1378 <xs:attribute name="name" type="xs:string" use="required"/>
1379 <!-- overrides the start address programmed by named algorithm from DFP -->
1380 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1381 <!-- overrides the size programmed by named algorithm from DFP -->
1382 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1383 <!-- disables the algorithm specified as default in DFP -->
1384 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1385 <!-- overrides the RAMstart for algorithm with 'name' from DFP -->
1386 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
1387 <!-- overrides the RAMsize for algorithm with 'name' from DFP -->
1388 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
1389 </xs:complexType>
1390
1391 <!-- element specifying the stack (added in 1.4.4) -->
1392 <xs:complexType name="StackType">
1393 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1394 </xs:complexType>
1395
1396 <!-- element specifying the heap (added in 1.4.4) -->
1397 <xs:complexType name="HeapType">
1398 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1399 </xs:complexType>
1400
1401 <!-- Project file type definition (added in 1.4.4) -->
1402 <xs:complexType name="ProjectFileType">
1403 <!-- path + filename + extension -->
1404 <xs:attribute name="name" type ="xs:string" use="required" />
1405 <!-- file item category: source, header, include path, etc. -->
1406 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1407 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1408 <xs:attribute name="src" type="xs:string" use ="optional"/>
1409 </xs:complexType>
1410
1411 <!-- Group section contains a list of files and (sub-)groups (added in 1.4.4) -->
1412 <xs:complexType name="GroupType">
1413 <xs:choice maxOccurs="unbounded">
1414 <xs:element name="file" type="ProjectFileType" />
1415 <xs:element name="group" type="GroupType" />
1416 </xs:choice>
1417 <xs:attribute name="name" use="required"/>
1418 </xs:complexType>
1419
1420 <!-- Files section within the project section (added in 1.4.4) -->
1421 <xs:complexType name="ProjectFilesType">
1422 <xs:choice maxOccurs="unbounded">
1423 <xs:element name="file" type="ProjectFileType" />
1424 <xs:element name="group" type="GroupType" />
1425 </xs:choice>
1426 </xs:complexType>
1427
1428 <!-- Component selection section (added in 1.4.4) -->
1429 <xs:complexType name="ComponentSelectType">
1430 <xs:sequence>
1431 <xs:element name="component" maxOccurs="unbounded">
1432 <xs:complexType>
1433 <xs:sequence>
1434 <!-- all config files -->
1435 <xs:element name="file" minOccurs="0" maxOccurs="unbounded">
1436 <xs:complexType>
1437 <!-- condition id of the condition that evaluates to true on project creation -->
1438 <xs:attribute name="condition" type="xs:string" use="optional"/>
1439 <!-- file item category: source, header, include path, etc. -->
1440 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1441 <!-- file item action attribute : config (copy to project, template, interface) -->
1442 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1443 <!-- path + filename + extension -->
1444 <xs:attribute name="name" type ="xs:string" use="required" />
1445 <!-- configuration file version: to be used by RTE to see whether the file requires updating or not -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001446 <xs:attribute name="version" type ="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001447 </xs:complexType>
1448 </xs:element>
1449 </xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001450 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1451 <xs:attribute name="Cbundle" type="xs:string" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001452 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1453 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001454 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1455 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1456 <xs:attribute name="Cversion" type="ComponentVersionType" use="optional"/>
1457 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/> <!-- only used when component implements an API -->
Joachim Krechdfe628f2016-07-01 15:36:52 +02001458 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
1459 </xs:complexType>
1460 </xs:element>
1461 </xs:sequence>
1462 </xs:complexType>
1463
1464 <!-- Project section: (added in 1.4.4) -->
1465 <xs:complexType name="ProjectType">
1466 <xs:all>
1467 <!-- target selection and configuration -->
1468 <xs:element name="target" type="TargetType"/>
1469 <!-- components selected for project -->
1470 <xs:element name="select" type="ComponentSelectType"/>
1471 <!-- project files not contained in components -->
1472 <xs:element name="files" type="ProjectFilesType"/>
1473 </xs:all>
1474 <!-- if no project name is provided, the filename of the GPDSC is used -->
1475 <xs:attribute name="name" type="xs:string" use="optional"/>
1476 <!-- optional link/reference to documentation about the project -->
1477 <xs:attribute name="documentation" type="xs:string" use="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001478 <!-- if true, the vendor gives permission for the documentation being extracted from the pack and displayed on a web-page -->
1479 <!-- links to web pages are assumed public -->
1480 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001481 </xs:complexType>
1482
1483 <!-- Create Section: (added in 1.4.4) -->
1484 <xs:complexType name="CreateType">
1485 <xs:sequence>
1486 <!-- project section -->
1487 <xs:element name="project" type="ProjectType" maxOccurs="unbounded"/>
1488 </xs:sequence>
1489 </xs:complexType>
1490
1491 <!-- release contains version as an attribute and notes as element text -->
1492 <xs:complexType name="ReleaseType">
1493 <xs:simpleContent>
1494 <xs:extension base='xs:string'>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001495 <xs:attribute name="version" type="PackVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001496 <xs:attribute name="date" type="xs:date" use="optional"/>
1497 <xs:attribute name="deprecated" type="xs:date" use="optional"/>
1498 <xs:attribute name="replacement" type="xs:string" use="optional"/>
1499 </xs:extension>
1500 </xs:simpleContent>
1501 </xs:complexType>
1502
1503 <xs:complexType name="ReleasesType">
1504 <xs:sequence>
1505 <xs:element name="release" type="ReleaseType" minOccurs="1" maxOccurs="unbounded"/>
1506 </xs:sequence>
1507 </xs:complexType>
1508
1509 <!-- Generator file type definition -->
1510 <xs:complexType name="GeneratorFileType">
1511 <!-- conditions can be used to filter relevant files depending on e.g. device name
1512 or toolchain -->
1513 <xs:attribute name="condition" type="xs:string" use="optional"/>
1514 <!-- file item category: generator specific file type -->
1515 <xs:attribute name="category" type="xs:string" use ="required"/>
1516 <!-- path + filename + extension -->
1517 <xs:attribute name="name" type ="xs:string" use="required" />
1518 <!-- file version -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001519 <xs:attribute name="version" type ="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001520 </xs:complexType>
1521
1522 <xs:complexType name="GeneratorDeviceSelectType">
1523 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1524 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1525 <xs:attribute name="Dvariant" type="xs:string" use="optional"/>
1526 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
1527 </xs:complexType>
1528
Joachim Krech98aeaab2016-10-25 21:02:23 +02001529 <xs:simpleType name="HostEnumType">
1530 <xs:restriction base="xs:token">
1531 <xs:enumeration value="all"/>
1532 <xs:enumeration value="win"/>
1533 <xs:enumeration value="linux"/>
1534 <xs:enumeration value="mac"/>
1535 <xs:enumeration value="other"/>
1536 </xs:restriction>
1537 </xs:simpleType>
1538
1539 <xs:simpleType name="WebGeneratorURLType">
1540 <xs:restriction base="xs:token">
1541 <xs:pattern value="http[s]{0,1}://[!-~]+"/>
1542 </xs:restriction>
1543 </xs:simpleType>
1544 <!-- exe generator argument has optional host and switch attributes -->
1545 <xs:complexType name="ExeGeneratorArgumentType">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001546 <xs:simpleContent>
1547 <xs:extension base='xs:string'>
1548 <xs:attribute name="switch" type="xs:string" use="optional"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001549 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001550 </xs:extension>
1551 </xs:simpleContent>
1552 </xs:complexType>
1553
Joachim Krech98aeaab2016-10-25 21:02:23 +02001554 <!-- web generator argument does not have host attribute -->
1555 <xs:complexType name="WebGeneratorArgumentType">
1556 <xs:simpleContent>
1557 <xs:extension base='xs:string'>
1558 <!-- web generator argument must have switch argument -->
1559 <xs:attribute name="switch" type="xs:string" use="required"/>
1560 </xs:extension>
1561 </xs:simpleContent>
1562 </xs:complexType>
1563
1564 <!-- eclipse generator argument does not have host nor switch attribute -->
1565 <xs:complexType name="EclipseGeneratorArgumentType">
1566 <xs:simpleContent>
1567 <xs:extension base='xs:string'>
1568 </xs:extension>
1569 </xs:simpleContent>
1570 </xs:complexType>
1571
1572 <xs:complexType name="GeneratorCommandType">
1573 <xs:simpleContent>
1574 <xs:extension base='xs:string'>
1575 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
1576 </xs:extension>
1577 </xs:simpleContent>
1578 </xs:complexType>
1579
Joachim Krechdfe628f2016-07-01 15:36:52 +02001580 <xs:complexType name="GeneratorCommandArgumentsType">
1581 <xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001582 <xs:element name="argument" minOccurs="0" maxOccurs="unbounded">
1583 <xs:complexType>
1584 <xs:simpleContent>
1585 <xs:extension base='xs:string'>
1586 <xs:attribute name="switch" type="xs:string" use="optional"/>
1587 </xs:extension>
1588 </xs:simpleContent>
1589 </xs:complexType>
1590 </xs:element>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001591 </xs:sequence>
1592 </xs:complexType>
1593
1594 <xs:complexType name="GpdscFileType">
1595 <xs:attribute name="name" type="xs:string" use="required"/>
1596 </xs:complexType>
1597
Joachim Krech98aeaab2016-10-25 21:02:23 +02001598 <xs:complexType name="ExeGeneratorType">
1599 <xs:sequence>
1600 <xs:element name="command" type="GeneratorCommandType" minOccurs="1" maxOccurs="4"/>
1601 <xs:element name="argument" type="ExeGeneratorArgumentType" minOccurs="1" maxOccurs="unbounded"/>
1602 </xs:sequence>
1603 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
1604 </xs:complexType>
1605
1606 <xs:complexType name="WebGeneratorType">
1607 <xs:sequence>
1608 <xs:element name="argument" type="WebGeneratorArgumentType" minOccurs="0" maxOccurs="unbounded"/>
1609 </xs:sequence>
1610 <xs:attribute name="url" type="WebGeneratorURLType" use="required"/>
1611 </xs:complexType>
1612
1613 <xs:complexType name="EclipseGeneratorType">
1614 <xs:sequence>
1615 <xs:element name="argument" type="EclipseGeneratorArgumentType" maxOccurs="unbounded"/>
1616 </xs:sequence>
1617 <xs:attribute name="plugin" type="xs:string" use="required"/>
1618 <xs:attribute name="class" type="xs:string" use="required"/>
1619 <xs:attribute name="method" type="xs:string" use="required"/>
1620 </xs:complexType>
1621
1622
Joachim Krechdfe628f2016-07-01 15:36:52 +02001623 <!-- Generator Type -->
1624 <xs:complexType name="GeneratorType">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001625 <xs:choice maxOccurs="unbounded">
1626 <!-- deprecated - use exe, web and/or eclipse -->
1627 <xs:element name="command" type="xs:string" minOccurs="0"/>
1628 <!-- deprecated - use argument tags under exe, web and or eclipse-->
1629 <xs:element name="arguments" type="GeneratorCommandArgumentsType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001630 <xs:element name="description" type="xs:string"/>
1631 <xs:element name="select" type="GeneratorDeviceSelectType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001632 <xs:element name="workingDir" type="xs:string" minOccurs="0"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001633 <xs:element name="exe" type="ExeGeneratorType" minOccurs="0" maxOccurs="5"/>
1634 <xs:element name="web" type="WebGeneratorType" minOccurs="0"/>
1635 <xs:element name="eclipse" type="EclipseGeneratorType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001636 <xs:element name="gpdsc" type="GpdscFileType" minOccurs="0"/>
1637 <!-- list of project files / content -->
1638 <xs:element name="project_files" minOccurs="0">
1639 <xs:complexType>
1640 <xs:sequence>
1641 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1642 </xs:sequence>
1643 </xs:complexType>
1644 </xs:element>
1645 <!-- list of tool files / content -->
1646 <xs:element name="files" minOccurs="0">
1647 <xs:complexType>
1648 <xs:sequence>
1649 <!-- tool files are under sole control of the generator -->
1650 <xs:element name="file" type="GeneratorFileType" maxOccurs="unbounded"/>
1651 </xs:sequence>
1652 </xs:complexType>
1653 </xs:element>
1654 <!-- Generator tools specific section ignored by other tools -->
1655 <xs:element name="extensions" minOccurs="0">
1656 <xs:complexType>
1657 <xs:sequence>
1658 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
1659 </xs:any>
1660 </xs:sequence>
1661 </xs:complexType>
1662 </xs:element>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001663 </xs:choice>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001664 <xs:attribute name="id" type="xs:string" use ="required"/>
1665 <xs:attribute name="Gvendor" type="xs:string" use ="optional"/>
1666 <xs:attribute name="Gtool" type="xs:string" use ="optional"/>
1667 <xs:attribute name="Gversion" type="xs:string" use ="optional"/>
1668 </xs:complexType>
1669
1670 <!-- Generators Section -->
1671 <xs:complexType name="GeneratorsType">
1672 <xs:sequence>
1673 <xs:element name="generator" type="GeneratorType" minOccurs="1" maxOccurs="unbounded"/>
1674 </xs:sequence>
1675 </xs:complexType>
1676
1677 <!-- package description root point -->
1678 <xs:element name="package" nillable="true">
1679 <xs:complexType>
1680 <xs:all>
1681 <!-- name of the package (Device Support=DFP, Board Support=BSP) -->
1682 <xs:element name="name" type="RestrictedString" minOccurs="1"/>
1683 <!-- company name of the developer/maintainer of this package -->
1684 <xs:element name="vendor" type="RestrictedString" minOccurs="1"/>
1685 <!-- brief description of the content and purpose of the package -->
1686 <xs:element name="description" type="xs:string" minOccurs="1"/>
1687 <!-- download location of this PDSC and corresponding package file -->
1688 <xs:element name="url" type="xs:anyURI" minOccurs="1"/>
1689 <!-- e.g. mailto:Support@<vendor>.com or www.<vendor>.com/supportRequest -->
1690 <xs:element name="supportContact" type="xs:string" minOccurs="0"/>
1691 <!-- optional: click through license file name and relative path -->
1692 <xs:element name="license" type="xs:string" minOccurs="0"/>
1693 <!-- optional: section listing requirements (1.4.2) -->
1694 <xs:element name="requirements" type="RequirementsType" minOccurs="0"/>
1695 <!-- optional: section used for tool independant project creation (one shot) -->
1696 <xs:element name="create" type="CreateType" minOccurs="0"/>
1697 <!-- Version numbers and release history -->
1698 <xs:element name="releases" type="ReleasesType" minOccurs="1"/>
1699 <!-- keyword for Search Engine Indexing (e.g. Google) -->
1700 <xs:element name="keywords" type="KeywordsType" minOccurs="0"/>
1701 <!-- generators are tools and utilities that are used to generate software components -->
1702 <xs:element name="generators" type="GeneratorsType" minOccurs="0"/>
1703 <!-- definition of devices including references to device support files contained in package -->
1704 <xs:element name="devices" minOccurs="0">
1705 <xs:complexType>
1706 <!-- top level -->
1707 <xs:sequence>
1708 <!-- Family Level begin -->
1709 <xs:element name="family" maxOccurs="unbounded">
1710 <xs:complexType>
1711 <xs:sequence>
1712 <xs:group ref="DevicePropertiesGroup"/>
1713 <xs:element name="device" type="DeviceType" minOccurs="0" maxOccurs="unbounded"/>
1714 <!-- Sub Family Level begin-->
1715 <xs:element name="subFamily" minOccurs="0" maxOccurs="unbounded">
1716 <xs:complexType>
1717 <xs:sequence>
1718 <xs:group ref="DevicePropertiesGroup"/>
1719 <!-- Device Level begin-->
1720 <xs:element name="device" type="DeviceType" maxOccurs="unbounded"/>
1721 <!-- Device Level end -->
1722 </xs:sequence>
1723 <xs:attribute name="DsubFamily" type="xs:string" use="required"/>
1724 </xs:complexType>
1725 </xs:element>
1726 <!-- Sub Family Level end -->
1727 </xs:sequence>
1728 <xs:attribute name="Dfamily" type="xs:string" use="required"/>
1729 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1730 </xs:complexType>
1731 </xs:element>
1732 <!-- Family Level end -->
1733 </xs:sequence>
1734 </xs:complexType>
1735 </xs:element>
1736 <!-- devices end -->
1737 <!-- definition of boards. Can be referenced by examples -->
1738 <xs:element name="boards" type="BoardsType" minOccurs="0"/>
1739 <!-- boards end -->
1740 <!-- taxonomy section contains default descriptions used in the entire model -->
1741 <xs:element name="taxonomy" type="TaxonomyType" minOccurs="0"/>
1742 <!-- apis section contains api descriptions used in the entire model -->
1743 <xs:element name="apis" type="ApisType" minOccurs="0"/>
1744 <!-- conditions section contains all condition entries used by any component of the package -->
1745 <xs:element name="conditions" type="ConditionsType" minOccurs="0"/>
1746 <!-- examples section defining examples available within a package -->
1747 <xs:element name="examples" type="ExamplesType" minOccurs="0"/>
1748 <!-- software component definition -->
1749 <xs:element name="components" minOccurs="0">
1750 <xs:complexType>
1751 <xs:choice minOccurs="1" maxOccurs="unbounded">
1752 <!-- COMPONENT Description Root Point: -->
1753 <xs:element name="bundle" minOccurs="1" maxOccurs="unbounded">
1754 <xs:complexType>
1755 <xs:sequence>
1756 <xs:element name="description" type="xs:string"/>
1757 <xs:element name="doc" type="xs:string"/>
1758 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1759 <xs:complexType>
1760 <xs:sequence>
1761 <!-- a component can be deprecated if it is no longer maintained-->
1762 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1763 <!-- short component description displayed -->
1764 <xs:element name="description" type="xs:string"/>
1765 <!-- content to be added to generated RTE_Component.h file -->
1766 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1767 <!-- list of files / content -->
1768 <xs:element name="files">
1769 <xs:complexType>
1770 <xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001771 <xs:element name="file" type="FileType" minOccurs="0" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001772 </xs:sequence>
1773 </xs:complexType>
1774 </xs:element>
1775 </xs:sequence>
1776 <!-- component identity attributes Cclass Cvendor and Cversion are specified by bundle -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001777 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1778 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1779 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1780 <xs:attribute name="Cversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001781 <!-- api version for this component -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001782 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001783 <!-- component attribute for referencing a condition specified in conditions section above -->
1784 <xs:attribute name="condition" type="xs:string" use="optional"/>
1785 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1786 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1787 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1788 <xs:attribute name="generator" type="xs:string" use="optional"/>
1789 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1790 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1791 </xs:complexType>
1792 </xs:element>
1793 </xs:sequence>
1794 <!-- bundle attributes -->
1795 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1796 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1797 <xs:attribute name="Cclass" type="CclassType" use="required"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001798 <xs:attribute name="Cversion" type="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001799 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1800 <xs:attribute name="generator" type="xs:string" use="optional"/>
1801 <!-- identifies this bundle variant to be the preferred variant [Version 1.4.0] -->
1802 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1803 </xs:complexType>
1804 </xs:element>
Joachim Krech465bd432016-11-21 09:15:30 +01001805 <xs:element name="component" minOccurs="0" maxOccurs="unbounded">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001806 <xs:complexType>
1807 <xs:sequence>
1808 <!-- a component can be deprecated if it is no longer maintained-->
1809 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1810 <!-- short component description displayed -->
1811 <xs:element name="description" type="xs:string"/>
1812 <!-- content to be added to generated RTE_Component.h file -->
1813 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1814 <!-- list of files / content -->
1815 <xs:element name="files">
1816 <xs:complexType>
1817 <xs:sequence>
1818 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1819 </xs:sequence>
1820 </xs:complexType>
1821 </xs:element>
1822 </xs:sequence>
1823 <!-- component identity attributes -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001824 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1825 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1826 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1827 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1828 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1829 <xs:attribute name="Cversion" type="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001830 <!-- api version for this component -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001831 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001832 <!-- component attribute for referencing a condition specified in conditions section above -->
1833 <xs:attribute name="condition" type="xs:string" use="optional"/>
1834 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1835 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1836 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1837 <xs:attribute name="generator" type="xs:string" use="optional"/>
1838 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1839 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1840 </xs:complexType>
1841 </xs:element>
1842 </xs:choice>
1843 <xs:attribute name="generator" type="xs:string" use="optional"/>
1844 </xs:complexType>
1845 </xs:element>
1846 </xs:all>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001847 <xs:attribute name="schemaVersion" type="SchemaVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001848 </xs:complexType>
1849 </xs:element>
1850</xs:schema>