blob: 0d31c219c38fa21005f6c899d8329c53fe46f971 [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"/>
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"/>
Joachim Krech4a03e6d2017-02-06 13:17:39 +01001063 <xs:enumeration value="layout"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001064 <xs:enumeration value="other"/>
1065 </xs:restriction>
1066 </xs:simpleType>
1067
1068 <xs:complexType name="BoardsBookType">
1069 <xs:attribute name="category" type="BoardBookCategoryEnum"/>
1070 <xs:attribute name="name" type="xs:string"/>
1071 <xs:attribute name="title" type="xs:string"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001072 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1073 <!-- links to web pages are assumed public -->
1074 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001075 </xs:complexType>
1076
1077 <xs:complexType name="DebugInterfaceType">
1078 <xs:attribute name="adapter" type="xs:string"/>
1079 <xs:attribute name="connector" type="xs:string"/>
1080 </xs:complexType>
1081
1082 <xs:group name="BoardElementsGroup">
1083 <xs:choice>
Joachim Krech465bd432016-11-21 09:15:30 +01001084 <xs:element name="description" type="xs:string" minOccurs="0"/>
1085 <xs:element name="feature" type="BoardFeatureType" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001086 <xs:element name="mountedDevice" type="BoardsDeviceType" maxOccurs="unbounded"/>
1087 <xs:element name="compatibleDevice" type="CompatibleDeviceType" maxOccurs="unbounded"/>
Joachim Krech465bd432016-11-21 09:15:30 +01001088 <xs:element name="image" minOccurs="0">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001089 <xs:complexType>
Joachim Krechd8797692016-11-07 17:09:00 +01001090 <xs:attribute name="small" type="xs:string" use="optional"/>
1091 <xs:attribute name="large" type="xs:string" use="optional"/>
1092 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1093 <!-- links to web pages are assumed public -->
1094 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001095 </xs:complexType>
1096 </xs:element>
Joachim Krech465bd432016-11-21 09:15:30 +01001097 <xs:element name="debugInterface" type="DebugInterfaceType" minOccurs="0" maxOccurs="unbounded"/>
1098 <xs:element name="book" type="BoardsBookType" minOccurs="0" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001099 </xs:choice>
1100 </xs:group>
1101
1102 <xs:complexType name="BoardType">
1103 <xs:sequence>
1104 <xs:group ref="BoardElementsGroup" minOccurs="1" maxOccurs="unbounded"/>
1105 </xs:sequence>
1106 <xs:attribute name="vendor" type="xs:string" use="required"/>
1107 <xs:attribute name="name" type="xs:string" use="required"/>
1108 <xs:attribute name="revision" type="xs:string" use="optional"/>
1109 <xs:attribute name="salesContact" type="xs:string" use="optional"/>
1110 <xs:attribute name="orderForm" type="xs:anyURI" use="optional"/>
1111 </xs:complexType>
1112
1113 <xs:complexType name="BoardsType">
1114 <xs:sequence>
1115 <xs:element name="board" type="BoardType" maxOccurs="unbounded"/>
1116 </xs:sequence>
1117 </xs:complexType>
1118
1119 <xs:complexType name="ExampleAttributesType">
1120 <xs:choice maxOccurs="unbounded">
1121 <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1122 <xs:element name="component" type="ComponentCategoryType" minOccurs="0" maxOccurs="unbounded"/>
1123 <xs:element name="keyword" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1124 </xs:choice>
1125 </xs:complexType>
1126
1127 <xs:complexType name="ExampleType">
1128 <xs:sequence>
1129 <!-- brief example description -->
1130 <xs:element name="description" type="xs:string"/>
1131 <!-- references the board -->
1132 <xs:element name="board" type="BoardReferenceType" maxOccurs="unbounded"/>
1133 <!-- lists environments with their load files -->
1134 <xs:element name="project" type="ExampleProjectType"/>
1135 <!-- categories, keywords and used components -->
1136 <xs:element name="attributes" type="ExampleAttributesType" />
1137 </xs:sequence>
1138 <!-- display name of the example -->
1139 <xs:attribute name="name" type="xs:string" use="required"/>
1140 <!-- relative folder where the example is stored in the package -->
1141 <xs:attribute name="folder" type="xs:string" use="required"/>
1142 <!-- archive file name with extension located in folder -->
1143 <xs:attribute name="archive" type="xs:string" use="optional"/>
1144 <!-- file name with extension relative to folder -->
1145 <xs:attribute name="doc" type="xs:string" use="required"/>
1146 <!-- version of the example -->
1147 <xs:attribute name="version" type="xs:string" use="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001148 <!-- if true, the vendor gives permission for the doc file being extracted from the pack and displayed on a web-page -->
1149 <!-- links to web pages are assumed public -->
1150 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001151 </xs:complexType>
1152
1153 <!-- section listing all examples contained in the package -->
1154 <xs:complexType name="ExamplesType">
1155 <xs:sequence>
1156 <xs:element name="example" type="ExampleType" maxOccurs="unbounded"/>
1157 </xs:sequence>
1158 </xs:complexType>
1159
1160 <xs:complexType name="KeywordsType">
1161 <xs:sequence>
1162 <xs:element name="keyword" type="xs:string" maxOccurs="unbounded"/>
1163 </xs:sequence>
1164 </xs:complexType>
1165
1166 <xs:simpleType name="InstancesType">
1167 <xs:restriction base="xs:unsignedInt">
1168 <xs:minInclusive value="1"/>
1169 </xs:restriction>
1170 </xs:simpleType>
1171
1172 <!-- Component file type definition -->
1173 <xs:complexType name="FileType">
1174 <xs:attribute name="condition" type="xs:string" use="optional"/>
1175 <!-- file item category: source, header, include path, etc. -->
1176 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1177 <!-- file item action attribute : config (copy to project, template, interface) -->
1178 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1179 <!-- description for "template" or "interface" files. Multiple items are combined when they have the same select attribute -->
1180 <xs:attribute name="select" type="xs:string" use ="optional"/>
1181 <!-- path + filename + extension -->
1182 <xs:attribute name="name" type ="xs:string" use="required" />
1183 <!-- copy file to project folder: deprecated, use attr="config" instead -->
1184 <xs:attribute name="copy" type ="xs:string" use="optional"/>
1185 <!-- 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 +02001186 <xs:attribute name="version" type ="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001187 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1188 <xs:attribute name="src" type="xs:string" use ="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001189 <!-- if true, the vendor gives permission for this file being extracted from the pack and displayed on a web-page -->
1190 <!-- links to web pages are assumed public -->
1191 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001192 </xs:complexType>
1193
1194 <!-- some strings are used to construct filenames (e.g. package name). Such names can contain only subset of characters
1195 and must not contain neither spaces nor dots.
1196 -->
1197 <xs:simpleType name="RestrictedString">
1198 <xs:restriction base="xs:string">
1199 <xs:pattern value="[\-_A-Za-z0-9]+"/>
1200 </xs:restriction>
1201 </xs:simpleType>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001202
Joachim Krech6ccd9852016-07-12 16:05:11 +02001203 <xs:simpleType name="RestrictedStringDname">
1204 <xs:restriction base="xs:string">
1205 <xs:pattern value="[\-_A-Za-z0-9/]+"/>
1206 </xs:restriction>
1207 </xs:simpleType>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001208
1209 <xs:simpleType name="SchemaVersionType">
1210 <xs:restriction base="xs:string">
1211 <xs:pattern value="[0-9]+\.[0-9]+((\.[0-9]+)|())"/>
1212 </xs:restriction>
1213 </xs:simpleType>
1214
1215 <xs:simpleType name="ComponentVersionType">
1216 <xs:restriction base="xs:string">
1217 <xs:pattern value="[0-9]+\.[0-9]+((\.[0-9]+)|())((\-[0-9A-Za-z_\-\.]+)|([_A-Za-z][0-9A-Za-z_\-\.]*)|())((\+[\-\._A-Za-z0-9]+)|())"/>
1218 </xs:restriction>
1219 </xs:simpleType>
1220
Joachim Krechdfe628f2016-07-01 15:36:52 +02001221 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1222 Important: version pattern shall remain the same while versions change
1223 -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001224 <xs:simpleType name="PackVersionType">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001225 <xs:restriction base="xs:string">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001226 <!-- major . minor . patch [[-]quality] [+build] -->
1227 <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 +02001228 </xs:restriction>
1229 </xs:simpleType>
1230
1231 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1232 Allows specifing a version range: minVersion : maxVersion
1233 -->
1234 <xs:simpleType name="ConditionVersionType">
1235 <xs:restriction base="xs:string">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001236 <!-- <xs:pattern value="[\.:\-_A-Za-z0-9]+"/> -->
Joachim Krech465bd432016-11-21 09:15:30 +01001237 <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 +02001238 </xs:restriction>
1239 </xs:simpleType>
1240
1241 <!-- PackageType creates a unique ID for a package (added in 1.4.4) -->
1242 <xs:complexType name="PackageType">
1243 <!-- vendor of the package -->
1244 <xs:attribute name="vendor" type="xs:string" use="required"/>
1245 <!-- name of the package -->
1246 <xs:attribute name="name" type="xs:string" use="required"/>
1247 <!-- version or version range of the package -->
Joachim Krechc6316a62016-11-10 09:46:05 +01001248 <xs:attribute name="version" type="ConditionVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001249 </xs:complexType>
1250
1251 <!-- Package dependency section type (added in 1.4.4) -->
1252 <xs:complexType name="PackagesType">
1253 <xs:sequence maxOccurs="unbounded">
1254 <xs:element name="package" type="PackageType"/>
1255 </xs:sequence>
1256 </xs:complexType>
1257
1258 <!-- LanguageType creates a unique language ID (added in 1.4.4) -->
1259 <xs:complexType name="LanguageType">
1260 <!-- language name e.g. C -->
1261 <xs:attribute name="name" type="xs:string" use="required"/>
1262 <!-- language version e.g. C99 -->
1263 <xs:attribute name="version" type="xs:string" use="required"/>
1264 </xs:complexType>
1265
1266 <!-- Lanuage section type (added in 1.4.4) -->
1267 <xs:complexType name="LanguagesType">
1268 <xs:sequence maxOccurs="unbounded">
1269 <xs:element name="language" type="LanguageType"/>
1270 </xs:sequence>
1271 </xs:complexType>
1272
1273 <!-- CompilerType crates a unique toolchain ID, e.g. armcc 5.4.0 (added in 1.4.4) -->
1274 <xs:complexType name="CompilerType">
1275 <xs:attribute name="name" type="CompilerEnumType" use="required"/>
Joachim Krechc6316a62016-11-10 09:46:05 +01001276 <xs:attribute name="version" type="xs:string" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001277 </xs:complexType>
1278
1279 <!-- Compiler section type (added in 1.4.4) -->
1280 <xs:complexType name="CompilersType">
1281 <xs:sequence maxOccurs="unbounded">
1282 <xs:element name="compiler" type="CompilerType"/>
1283 </xs:sequence>
1284 </xs:complexType>
1285
1286 <!-- Requirements Section: (added in 1.4.4) -->
1287 <xs:complexType name="RequirementsType">
1288 <xs:all>
1289 <xs:element name="packages" type="PackagesType" minOccurs="0"/>
1290 <xs:element name="languages" type="LanguagesType" minOccurs="0"/>
1291 <xs:element name="compilers" type="CompilersType" minOccurs="0"/>
1292 </xs:all>
1293 </xs:complexType>
1294
1295 <!-- Project target specification: (added in 1.4.4) -->
1296 <xs:complexType name="TargetType">
1297 <xs:choice maxOccurs="unbounded">
1298 <!-- build options -->
1299 <xs:element name="output" type="OutputType"/>
1300 <!-- memory options -->
1301 <xs:element name="memory" type="TargetMemoryType" minOccurs="0" maxOccurs="unbounded"/>
1302 <!-- stack setting -->
1303 <xs:element name="stack" type="StackType" minOccurs="0" maxOccurs="1"/>
1304 <!-- heap setting -->
1305 <xs:element name="heap" type="HeapType" minOccurs="0" maxOccurs="1"/>
1306 <!-- algorithm options -->
1307 <xs:element name="algorithm" type="TargetAlgorithmType" minOccurs="0" maxOccurs="unbounded"/>
1308 <!-- debug probe selection and configuration -->
1309 <xs:element name="debugProbe" type="DebugProbeType" minOccurs="0"/>
1310 </xs:choice>
1311 <!-- Board Vendor -->
1312 <xs:attribute name="Bvendor" type="xs:string" use="optional"/>
1313 <!-- Board Name -->
1314 <xs:attribute name="Bname" type="xs:string" use="optional"/>
1315 <!-- Board Version -->
1316 <xs:attribute name="Bversion" type="xs:string" use="optional"/>
1317 <!-- Device Vendor -->
1318 <xs:attribute name="Dvendor" type="xs:string" use="optional"/>
1319 <!-- Device Name -->
1320 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1321 <!-- Processor Instance Name -->
1322 <xs:attribute name="Pname" type="xs:string" use="optional"/>
1323 <!-- FPU used in target build -->
1324 <xs:attribute name="Dfpu" type="DfpuEnum" use="optional"/>
1325 <!-- Endianess used in target build -->
1326 <xs:attribute name="Dendian" type="DendianEnum" use="optional"/>
1327 <!-- MPU used in target build -->
1328 <xs:attribute name="Dmpu" type="DmpuEnum" use="optional"/>
1329 </xs:complexType>
1330
1331 <!-- Debug probe specification: (added in 1.4.4) -->
1332 <xs:complexType name="DebugProbeType">
1333 <!-- Product Name of the debug probe-->
1334 <xs:attribute name="name" type="xs:string" use="required"/>
1335 <!-- Debug protocol selection -->
1336 <xs:attribute name="protocol" type="xs:string" use="required"/>
1337 <!-- Core clock configured by application -->
1338 <xs:attribute name="coreClock" type="NonNegativeInteger" use="required"/>
1339 <!-- TPIU clock configured-->
1340 <xs:attribute name="tpiuClock" type="NonNegativeInteger" use="optional"/>
1341 </xs:complexType>
1342
1343 <!-- Build settings for the project, setting RTE filter options (added in 1.4.4) -->
1344 <xs:complexType name="OutputType">
1345 <!-- Project output file name -->
1346 <xs:attribute name="name" type="xs:string" use="required"/>
1347 <!-- Project output library or executable -->
1348 <xs:attribute name="type" type="CompilerOutputType" use="required"/>
1349 <!-- Project build for debug -->
1350 <xs:attribute name="debug" type="xs:boolean" use="required"/>
1351 </xs:complexType>
1352
1353 <!-- Memory settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1354 <xs:complexType name="TargetMemoryType">
1355 <xs:attribute name="id" type="xs:string" use="optional"/> <!-- only use with legacy DFPs -->
1356 <!-- defines the name of the memory for reference, allows to redefine memory from DFP -->
1357 <xs:attribute name="name" type="xs:string" use="required"/>
1358 <!-- (re-)defines the start address of the memory -->
1359 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1360 <!-- (re-)defines the size in bytes of the memory -->
1361 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1362 <!-- disables the memory with the name specified by DFP -->
1363 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1364 <!-- if true, this memory is used for the startup code -->
1365 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
1366 <!-- if true, this memory is initialized with 0 -->
1367 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
1368 <!-- overrides access permisson configured by the DFP -->
1369 <xs:attribute name="access" type="AccessType" use="optional"/>
1370 <!-- specifies whether the memory is used as default by linker -->
1371 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
1372 </xs:complexType>
1373
1374 <!-- Algorithm settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1375 <xs:complexType name="TargetAlgorithmType">
1376 <!-- references the filename of the algorith, allowing to redefine attributes of algorithms in DFP -->
1377 <xs:attribute name="name" type="xs:string" use="required"/>
1378 <!-- overrides the start address programmed by named algorithm from DFP -->
1379 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1380 <!-- overrides the size programmed by named algorithm from DFP -->
1381 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1382 <!-- disables the algorithm specified as default in DFP -->
1383 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1384 <!-- overrides the RAMstart for algorithm with 'name' from DFP -->
1385 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
1386 <!-- overrides the RAMsize for algorithm with 'name' from DFP -->
1387 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
1388 </xs:complexType>
1389
1390 <!-- element specifying the stack (added in 1.4.4) -->
1391 <xs:complexType name="StackType">
1392 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1393 </xs:complexType>
1394
1395 <!-- element specifying the heap (added in 1.4.4) -->
1396 <xs:complexType name="HeapType">
1397 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1398 </xs:complexType>
1399
1400 <!-- Project file type definition (added in 1.4.4) -->
1401 <xs:complexType name="ProjectFileType">
1402 <!-- path + filename + extension -->
1403 <xs:attribute name="name" type ="xs:string" use="required" />
1404 <!-- file item category: source, header, include path, etc. -->
1405 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1406 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1407 <xs:attribute name="src" type="xs:string" use ="optional"/>
1408 </xs:complexType>
1409
1410 <!-- Group section contains a list of files and (sub-)groups (added in 1.4.4) -->
1411 <xs:complexType name="GroupType">
1412 <xs:choice maxOccurs="unbounded">
1413 <xs:element name="file" type="ProjectFileType" />
1414 <xs:element name="group" type="GroupType" />
1415 </xs:choice>
1416 <xs:attribute name="name" use="required"/>
1417 </xs:complexType>
1418
1419 <!-- Files section within the project section (added in 1.4.4) -->
1420 <xs:complexType name="ProjectFilesType">
1421 <xs:choice maxOccurs="unbounded">
1422 <xs:element name="file" type="ProjectFileType" />
1423 <xs:element name="group" type="GroupType" />
1424 </xs:choice>
1425 </xs:complexType>
1426
1427 <!-- Component selection section (added in 1.4.4) -->
1428 <xs:complexType name="ComponentSelectType">
1429 <xs:sequence>
1430 <xs:element name="component" maxOccurs="unbounded">
1431 <xs:complexType>
1432 <xs:sequence>
1433 <!-- all config files -->
1434 <xs:element name="file" minOccurs="0" maxOccurs="unbounded">
1435 <xs:complexType>
1436 <!-- condition id of the condition that evaluates to true on project creation -->
1437 <xs:attribute name="condition" type="xs:string" use="optional"/>
1438 <!-- file item category: source, header, include path, etc. -->
1439 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1440 <!-- file item action attribute : config (copy to project, template, interface) -->
1441 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1442 <!-- path + filename + extension -->
1443 <xs:attribute name="name" type ="xs:string" use="required" />
1444 <!-- configuration file version: to be used by RTE to see whether the file requires updating or not -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001445 <xs:attribute name="version" type ="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001446 </xs:complexType>
1447 </xs:element>
1448 </xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001449 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1450 <xs:attribute name="Cbundle" type="xs:string" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001451 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1452 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001453 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1454 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1455 <xs:attribute name="Cversion" type="ComponentVersionType" use="optional"/>
1456 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/> <!-- only used when component implements an API -->
Joachim Krechdfe628f2016-07-01 15:36:52 +02001457 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
1458 </xs:complexType>
1459 </xs:element>
1460 </xs:sequence>
1461 </xs:complexType>
1462
1463 <!-- Project section: (added in 1.4.4) -->
1464 <xs:complexType name="ProjectType">
1465 <xs:all>
1466 <!-- target selection and configuration -->
1467 <xs:element name="target" type="TargetType"/>
1468 <!-- components selected for project -->
1469 <xs:element name="select" type="ComponentSelectType"/>
1470 <!-- project files not contained in components -->
1471 <xs:element name="files" type="ProjectFilesType"/>
1472 </xs:all>
1473 <!-- if no project name is provided, the filename of the GPDSC is used -->
1474 <xs:attribute name="name" type="xs:string" use="optional"/>
1475 <!-- optional link/reference to documentation about the project -->
1476 <xs:attribute name="documentation" type="xs:string" use="optional"/>
Joachim Krechd8797692016-11-07 17:09:00 +01001477 <!-- if true, the vendor gives permission for the documentation being extracted from the pack and displayed on a web-page -->
1478 <!-- links to web pages are assumed public -->
1479 <xs:attribute name="public" type="xs:boolean" use="optional" default="false"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001480 </xs:complexType>
1481
1482 <!-- Create Section: (added in 1.4.4) -->
1483 <xs:complexType name="CreateType">
1484 <xs:sequence>
1485 <!-- project section -->
1486 <xs:element name="project" type="ProjectType" maxOccurs="unbounded"/>
1487 </xs:sequence>
1488 </xs:complexType>
1489
1490 <!-- release contains version as an attribute and notes as element text -->
1491 <xs:complexType name="ReleaseType">
1492 <xs:simpleContent>
1493 <xs:extension base='xs:string'>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001494 <xs:attribute name="version" type="PackVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001495 <xs:attribute name="date" type="xs:date" use="optional"/>
1496 <xs:attribute name="deprecated" type="xs:date" use="optional"/>
1497 <xs:attribute name="replacement" type="xs:string" use="optional"/>
1498 </xs:extension>
1499 </xs:simpleContent>
1500 </xs:complexType>
1501
1502 <xs:complexType name="ReleasesType">
1503 <xs:sequence>
1504 <xs:element name="release" type="ReleaseType" minOccurs="1" maxOccurs="unbounded"/>
1505 </xs:sequence>
1506 </xs:complexType>
1507
1508 <!-- Generator file type definition -->
1509 <xs:complexType name="GeneratorFileType">
1510 <!-- conditions can be used to filter relevant files depending on e.g. device name
1511 or toolchain -->
1512 <xs:attribute name="condition" type="xs:string" use="optional"/>
1513 <!-- file item category: generator specific file type -->
1514 <xs:attribute name="category" type="xs:string" use ="required"/>
1515 <!-- path + filename + extension -->
1516 <xs:attribute name="name" type ="xs:string" use="required" />
1517 <!-- file version -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001518 <xs:attribute name="version" type ="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001519 </xs:complexType>
1520
1521 <xs:complexType name="GeneratorDeviceSelectType">
1522 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1523 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1524 <xs:attribute name="Dvariant" type="xs:string" use="optional"/>
1525 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
1526 </xs:complexType>
1527
Joachim Krech98aeaab2016-10-25 21:02:23 +02001528 <xs:simpleType name="HostEnumType">
1529 <xs:restriction base="xs:token">
1530 <xs:enumeration value="all"/>
1531 <xs:enumeration value="win"/>
1532 <xs:enumeration value="linux"/>
1533 <xs:enumeration value="mac"/>
1534 <xs:enumeration value="other"/>
1535 </xs:restriction>
1536 </xs:simpleType>
1537
1538 <xs:simpleType name="WebGeneratorURLType">
1539 <xs:restriction base="xs:token">
1540 <xs:pattern value="http[s]{0,1}://[!-~]+"/>
1541 </xs:restriction>
1542 </xs:simpleType>
1543 <!-- exe generator argument has optional host and switch attributes -->
1544 <xs:complexType name="ExeGeneratorArgumentType">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001545 <xs:simpleContent>
1546 <xs:extension base='xs:string'>
1547 <xs:attribute name="switch" type="xs:string" use="optional"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001548 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001549 </xs:extension>
1550 </xs:simpleContent>
1551 </xs:complexType>
1552
Joachim Krech98aeaab2016-10-25 21:02:23 +02001553 <!-- web generator argument does not have host attribute -->
1554 <xs:complexType name="WebGeneratorArgumentType">
1555 <xs:simpleContent>
1556 <xs:extension base='xs:string'>
1557 <!-- web generator argument must have switch argument -->
1558 <xs:attribute name="switch" type="xs:string" use="required"/>
1559 </xs:extension>
1560 </xs:simpleContent>
1561 </xs:complexType>
1562
1563 <!-- eclipse generator argument does not have host nor switch attribute -->
1564 <xs:complexType name="EclipseGeneratorArgumentType">
1565 <xs:simpleContent>
1566 <xs:extension base='xs:string'>
1567 </xs:extension>
1568 </xs:simpleContent>
1569 </xs:complexType>
1570
1571 <xs:complexType name="GeneratorCommandType">
1572 <xs:simpleContent>
1573 <xs:extension base='xs:string'>
1574 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
1575 </xs:extension>
1576 </xs:simpleContent>
1577 </xs:complexType>
1578
Joachim Krechdfe628f2016-07-01 15:36:52 +02001579 <xs:complexType name="GeneratorCommandArgumentsType">
1580 <xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001581 <xs:element name="argument" minOccurs="0" maxOccurs="unbounded">
1582 <xs:complexType>
1583 <xs:simpleContent>
1584 <xs:extension base='xs:string'>
1585 <xs:attribute name="switch" type="xs:string" use="optional"/>
1586 </xs:extension>
1587 </xs:simpleContent>
1588 </xs:complexType>
1589 </xs:element>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001590 </xs:sequence>
1591 </xs:complexType>
1592
1593 <xs:complexType name="GpdscFileType">
1594 <xs:attribute name="name" type="xs:string" use="required"/>
1595 </xs:complexType>
1596
Joachim Krech98aeaab2016-10-25 21:02:23 +02001597 <xs:complexType name="ExeGeneratorType">
1598 <xs:sequence>
1599 <xs:element name="command" type="GeneratorCommandType" minOccurs="1" maxOccurs="4"/>
1600 <xs:element name="argument" type="ExeGeneratorArgumentType" minOccurs="1" maxOccurs="unbounded"/>
1601 </xs:sequence>
1602 <xs:attribute name="host" type="HostEnumType" use="optional" default="all"/>
1603 </xs:complexType>
1604
1605 <xs:complexType name="WebGeneratorType">
1606 <xs:sequence>
1607 <xs:element name="argument" type="WebGeneratorArgumentType" minOccurs="0" maxOccurs="unbounded"/>
1608 </xs:sequence>
1609 <xs:attribute name="url" type="WebGeneratorURLType" use="required"/>
1610 </xs:complexType>
1611
1612 <xs:complexType name="EclipseGeneratorType">
1613 <xs:sequence>
1614 <xs:element name="argument" type="EclipseGeneratorArgumentType" maxOccurs="unbounded"/>
1615 </xs:sequence>
1616 <xs:attribute name="plugin" type="xs:string" use="required"/>
1617 <xs:attribute name="class" type="xs:string" use="required"/>
1618 <xs:attribute name="method" type="xs:string" use="required"/>
1619 </xs:complexType>
1620
1621
Joachim Krechdfe628f2016-07-01 15:36:52 +02001622 <!-- Generator Type -->
1623 <xs:complexType name="GeneratorType">
Joachim Krech98aeaab2016-10-25 21:02:23 +02001624 <xs:choice maxOccurs="unbounded">
1625 <!-- deprecated - use exe, web and/or eclipse -->
1626 <xs:element name="command" type="xs:string" minOccurs="0"/>
1627 <!-- deprecated - use argument tags under exe, web and or eclipse-->
1628 <xs:element name="arguments" type="GeneratorCommandArgumentsType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001629 <xs:element name="description" type="xs:string"/>
1630 <xs:element name="select" type="GeneratorDeviceSelectType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001631 <xs:element name="workingDir" type="xs:string" minOccurs="0"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001632 <xs:element name="exe" type="ExeGeneratorType" minOccurs="0" maxOccurs="5"/>
1633 <xs:element name="web" type="WebGeneratorType" minOccurs="0"/>
1634 <xs:element name="eclipse" type="EclipseGeneratorType" minOccurs="0"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001635 <xs:element name="gpdsc" type="GpdscFileType" minOccurs="0"/>
1636 <!-- list of project files / content -->
1637 <xs:element name="project_files" minOccurs="0">
1638 <xs:complexType>
1639 <xs:sequence>
1640 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1641 </xs:sequence>
1642 </xs:complexType>
1643 </xs:element>
1644 <!-- list of tool files / content -->
1645 <xs:element name="files" minOccurs="0">
1646 <xs:complexType>
1647 <xs:sequence>
1648 <!-- tool files are under sole control of the generator -->
1649 <xs:element name="file" type="GeneratorFileType" maxOccurs="unbounded"/>
1650 </xs:sequence>
1651 </xs:complexType>
1652 </xs:element>
1653 <!-- Generator tools specific section ignored by other tools -->
1654 <xs:element name="extensions" minOccurs="0">
1655 <xs:complexType>
1656 <xs:sequence>
1657 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
1658 </xs:any>
1659 </xs:sequence>
1660 </xs:complexType>
1661 </xs:element>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001662 </xs:choice>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001663 <xs:attribute name="id" type="xs:string" use ="required"/>
1664 <xs:attribute name="Gvendor" type="xs:string" use ="optional"/>
1665 <xs:attribute name="Gtool" type="xs:string" use ="optional"/>
1666 <xs:attribute name="Gversion" type="xs:string" use ="optional"/>
1667 </xs:complexType>
1668
1669 <!-- Generators Section -->
1670 <xs:complexType name="GeneratorsType">
1671 <xs:sequence>
1672 <xs:element name="generator" type="GeneratorType" minOccurs="1" maxOccurs="unbounded"/>
1673 </xs:sequence>
1674 </xs:complexType>
1675
1676 <!-- package description root point -->
1677 <xs:element name="package" nillable="true">
1678 <xs:complexType>
1679 <xs:all>
1680 <!-- name of the package (Device Support=DFP, Board Support=BSP) -->
1681 <xs:element name="name" type="RestrictedString" minOccurs="1"/>
1682 <!-- company name of the developer/maintainer of this package -->
1683 <xs:element name="vendor" type="RestrictedString" minOccurs="1"/>
1684 <!-- brief description of the content and purpose of the package -->
1685 <xs:element name="description" type="xs:string" minOccurs="1"/>
1686 <!-- download location of this PDSC and corresponding package file -->
1687 <xs:element name="url" type="xs:anyURI" minOccurs="1"/>
1688 <!-- e.g. mailto:Support@<vendor>.com or www.<vendor>.com/supportRequest -->
1689 <xs:element name="supportContact" type="xs:string" minOccurs="0"/>
1690 <!-- optional: click through license file name and relative path -->
1691 <xs:element name="license" type="xs:string" minOccurs="0"/>
1692 <!-- optional: section listing requirements (1.4.2) -->
1693 <xs:element name="requirements" type="RequirementsType" minOccurs="0"/>
1694 <!-- optional: section used for tool independant project creation (one shot) -->
1695 <xs:element name="create" type="CreateType" minOccurs="0"/>
1696 <!-- Version numbers and release history -->
1697 <xs:element name="releases" type="ReleasesType" minOccurs="1"/>
1698 <!-- keyword for Search Engine Indexing (e.g. Google) -->
1699 <xs:element name="keywords" type="KeywordsType" minOccurs="0"/>
1700 <!-- generators are tools and utilities that are used to generate software components -->
1701 <xs:element name="generators" type="GeneratorsType" minOccurs="0"/>
1702 <!-- definition of devices including references to device support files contained in package -->
1703 <xs:element name="devices" minOccurs="0">
1704 <xs:complexType>
1705 <!-- top level -->
1706 <xs:sequence>
1707 <!-- Family Level begin -->
1708 <xs:element name="family" maxOccurs="unbounded">
1709 <xs:complexType>
1710 <xs:sequence>
1711 <xs:group ref="DevicePropertiesGroup"/>
1712 <xs:element name="device" type="DeviceType" minOccurs="0" maxOccurs="unbounded"/>
1713 <!-- Sub Family Level begin-->
1714 <xs:element name="subFamily" minOccurs="0" maxOccurs="unbounded">
1715 <xs:complexType>
1716 <xs:sequence>
1717 <xs:group ref="DevicePropertiesGroup"/>
1718 <!-- Device Level begin-->
1719 <xs:element name="device" type="DeviceType" maxOccurs="unbounded"/>
1720 <!-- Device Level end -->
1721 </xs:sequence>
1722 <xs:attribute name="DsubFamily" type="xs:string" use="required"/>
1723 </xs:complexType>
1724 </xs:element>
1725 <!-- Sub Family Level end -->
1726 </xs:sequence>
1727 <xs:attribute name="Dfamily" type="xs:string" use="required"/>
1728 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1729 </xs:complexType>
1730 </xs:element>
1731 <!-- Family Level end -->
1732 </xs:sequence>
1733 </xs:complexType>
1734 </xs:element>
1735 <!-- devices end -->
1736 <!-- definition of boards. Can be referenced by examples -->
1737 <xs:element name="boards" type="BoardsType" minOccurs="0"/>
1738 <!-- boards end -->
1739 <!-- taxonomy section contains default descriptions used in the entire model -->
1740 <xs:element name="taxonomy" type="TaxonomyType" minOccurs="0"/>
1741 <!-- apis section contains api descriptions used in the entire model -->
1742 <xs:element name="apis" type="ApisType" minOccurs="0"/>
1743 <!-- conditions section contains all condition entries used by any component of the package -->
1744 <xs:element name="conditions" type="ConditionsType" minOccurs="0"/>
1745 <!-- examples section defining examples available within a package -->
1746 <xs:element name="examples" type="ExamplesType" minOccurs="0"/>
1747 <!-- software component definition -->
1748 <xs:element name="components" minOccurs="0">
1749 <xs:complexType>
1750 <xs:choice minOccurs="1" maxOccurs="unbounded">
1751 <!-- COMPONENT Description Root Point: -->
1752 <xs:element name="bundle" minOccurs="1" maxOccurs="unbounded">
1753 <xs:complexType>
1754 <xs:sequence>
1755 <xs:element name="description" type="xs:string"/>
1756 <xs:element name="doc" type="xs:string"/>
1757 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1758 <xs:complexType>
1759 <xs:sequence>
1760 <!-- a component can be deprecated if it is no longer maintained-->
1761 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1762 <!-- short component description displayed -->
1763 <xs:element name="description" type="xs:string"/>
1764 <!-- content to be added to generated RTE_Component.h file -->
1765 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1766 <!-- list of files / content -->
1767 <xs:element name="files">
1768 <xs:complexType>
1769 <xs:sequence>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001770 <xs:element name="file" type="FileType" minOccurs="0" maxOccurs="unbounded"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001771 </xs:sequence>
1772 </xs:complexType>
1773 </xs:element>
1774 </xs:sequence>
1775 <!-- component identity attributes Cclass Cvendor and Cversion are specified by bundle -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001776 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1777 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1778 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1779 <xs:attribute name="Cversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001780 <!-- api version for this component -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001781 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001782 <!-- component attribute for referencing a condition specified in conditions section above -->
1783 <xs:attribute name="condition" type="xs:string" use="optional"/>
1784 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1785 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1786 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1787 <xs:attribute name="generator" type="xs:string" use="optional"/>
1788 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1789 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1790 </xs:complexType>
1791 </xs:element>
1792 </xs:sequence>
1793 <!-- bundle attributes -->
1794 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1795 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1796 <xs:attribute name="Cclass" type="CclassType" use="required"/>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001797 <xs:attribute name="Cversion" type="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001798 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1799 <xs:attribute name="generator" type="xs:string" use="optional"/>
1800 <!-- identifies this bundle variant to be the preferred variant [Version 1.4.0] -->
1801 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1802 </xs:complexType>
1803 </xs:element>
Joachim Krech465bd432016-11-21 09:15:30 +01001804 <xs:element name="component" minOccurs="0" maxOccurs="unbounded">
Joachim Krechdfe628f2016-07-01 15:36:52 +02001805 <xs:complexType>
1806 <xs:sequence>
1807 <!-- a component can be deprecated if it is no longer maintained-->
1808 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1809 <!-- short component description displayed -->
1810 <xs:element name="description" type="xs:string"/>
1811 <!-- content to be added to generated RTE_Component.h file -->
1812 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1813 <!-- list of files / content -->
1814 <xs:element name="files">
1815 <xs:complexType>
1816 <xs:sequence>
1817 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1818 </xs:sequence>
1819 </xs:complexType>
1820 </xs:element>
1821 </xs:sequence>
1822 <!-- component identity attributes -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001823 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1824 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1825 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1826 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1827 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1828 <xs:attribute name="Cversion" type="ComponentVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001829 <!-- api version for this component -->
Joachim Krech98aeaab2016-10-25 21:02:23 +02001830 <xs:attribute name="Capiversion" type="ComponentVersionType" use="optional"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001831 <!-- component attribute for referencing a condition specified in conditions section above -->
1832 <xs:attribute name="condition" type="xs:string" use="optional"/>
1833 <!-- maximum allowed number of instances of a component in a project, default - 1-->
1834 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
1835 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1836 <xs:attribute name="generator" type="xs:string" use="optional"/>
1837 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1838 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1839 </xs:complexType>
1840 </xs:element>
1841 </xs:choice>
1842 <xs:attribute name="generator" type="xs:string" use="optional"/>
1843 </xs:complexType>
1844 </xs:element>
1845 </xs:all>
Joachim Krech98aeaab2016-10-25 21:02:23 +02001846 <xs:attribute name="schemaVersion" type="SchemaVersionType" use="required"/>
Joachim Krechdfe628f2016-07-01 15:36:52 +02001847 </xs:complexType>
1848 </xs:element>
1849</xs:schema>