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