blob: 3f26629338c5cdf98061cf398e14624c4e64429d [file] [log] [blame]
Joachim Krechc4773412016-02-18 09:17:07 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 Copyright (c) 2013-2016 ARM Limited. All rights reserved.
5
6 SPDX-License-Identifier: Apache-2.0
7
8 Licensed under the Apache License, Version 2.0 (the License); you may
9 not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an AS IS BASIS, WITHOUT
16 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 $Date: 17. February 2016
21 $Revision: 1.4.4
22
23 $Project: Schema File for Package Description File Format Specification
24
Joachim Krech637681b2016-05-13 09:03:56 +020025 Package file name convention <vendor>.<name>.<version>.pack
Joachim Krechc4773412016-02-18 09:17:07 +010026 SchemaVersion=1.4
27
Joachim Krech637681b2016-05-13 09:03:56 +020028 26. April 2016: 1.4.4
29 - added: attribute defaultResetSequence to DebugType.
Joachim Krechc4773412016-02-18 09:17:07 +010030 - added: <requirements> section:
Joachim Krech637681b2016-05-13 09:03:56 +020031 - <packages> defining dependencies between packs
Joachim Krechc4773412016-02-18 09:17:07 +010032 - <languages> defining required language support e.g. C99
33 - <compiler> defining required toolchains
34 - added: <create> section used for tool independent project description
35 - attributes: name, documentation, condition
36 - <target> specifies the board and device targeted by the project
37 - <options>
38 - <files> specifies the grouped files
39 - updated: <algorith> element
40 - added attributes: style, parameter and endian
41 - updated: <memory> element
42 - added attributes: name, access and alias
43 - deprecating attribute: id (replaced by name + access)
44
45 03. Dec 2015: 1.4.3
46 - adding attribute "sdf" to devices section element debugconfig
47
48 16. Oct 2015: 1.4.1
49 - pName, Dname, Dvariant type changed from xs:string to RestrictedString
50
51 28. Aug 2015: 1.4.0
52 - deprecate devices memory tag attribute id and use
53 introduced name and access attributes instead
54 - added devices memory tag attribute: alias
55 - added devices algorithm tag attribute: style
56 - added attribute to define a default component variant
57 - added board book category: layout
58
59 29. May 2015
60 - added missing Pname attribute to GeneratorDeviceSelectType used for multi processor
61 devices
62 12. Jan. 2014
63 - allow to link a component with a generator via new component attribute
64 - generator command extended to deal with more sophisticated command lines / document sequence
65
66-->
67
68<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" version="1.3">
69
70 <!-- NonNegativeInteger specifies the format in which numbers are represented in hexadecimal or decimal format -->
71 <xs:simpleType name="NonNegativeInteger">
72 <xs:restriction base="xs:string">
73 <xs:pattern value="[+]?(0x|0X)?[0-9a-fA-F]+"/>
74 </xs:restriction>
75 </xs:simpleType>
76
77 <!-- Registered Device Vendors -->
78 <xs:simpleType name="DeviceVendorEnum">
79 <xs:restriction base="xs:token">
80 <xs:enumeration value="ABOV Semiconductor:126"/>
81 <xs:enumeration value="Actel:56"/>
82 <xs:enumeration value="Altera:85"/>
83 <xs:enumeration value="Altium:65"/>
84 <xs:enumeration value="Ambiq Micro:120"/>
85 <xs:enumeration value="Analog Devices:1"/>
86 <xs:enumeration value="ARM:82"/>
87 <xs:enumeration value="ARM CMSIS:109"/>
88 <xs:enumeration value="Atmel:3"/>
89 <xs:enumeration value="CSR:118"/>
90 <xs:enumeration value="Cypress:19"/>
91 <xs:enumeration value="Dialog Semiconductor:113"/>
92 <xs:enumeration value="Dolphin:57"/>
93 <xs:enumeration value="Domosys:26"/>
94 <xs:enumeration value="Ember:98"/>
95 <xs:enumeration value="Energy Micro:97"/>
96 <xs:enumeration value="EnOcean:91"/>
97 <xs:enumeration value="Evatronix:64"/>
98 <xs:enumeration value="Freescale:78"/>
99 <xs:enumeration value="Generic:5"/>
100 <xs:enumeration value="GigaDevice:123"/>
101 <xs:enumeration value="Holtek:106"/>
102 <xs:enumeration value="Hynix Semiconductor:6"/>
103 <xs:enumeration value="Hyundai:35"/>
104 <xs:enumeration value="Infineon:7"/>
105 <xs:enumeration value="Kionix:127"/>
106 <xs:enumeration value="Lapis Semiconductor:10"/>
107 <xs:enumeration value="Luminary Micro:76"/>
108 <xs:enumeration value="Maxim:23"/>
109 <xs:enumeration value="MediaTek:129"/>
110 <xs:enumeration value="MegaChips:128"/>
111 <xs:enumeration value="Mentor Graphics Co.:24"/>
112 <xs:enumeration value="Micronas:30"/>
113 <xs:enumeration value="Microsemi:112"/>
114 <xs:enumeration value="Milandr:99"/>
Joachim Krech637681b2016-05-13 09:03:56 +0200115 <xs:enumeration value="MindMotion:132"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100116 <xs:enumeration value="NetSilicon:67"/>
117 <xs:enumeration value="Nordic Semiconductor:54"/>
118 <xs:enumeration value="Nuvoton:18"/>
119 <xs:enumeration value="NXP:11"/>
120 <xs:enumeration value="OKI SEMICONDUCTOR CO.,LTD.:108"/>
Joachim Krech637681b2016-05-13 09:03:56 +0200121 <xs:enumeration value="Panasonic:131"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100122 <xs:enumeration value="Realtek Semiconductor:124"/>
123 <xs:enumeration value="Redpine Signals:125"/>
124 <xs:enumeration value="Renesas:117"/>
125 <xs:enumeration value="ROHM:103"/>
126 <xs:enumeration value="Samsung:47"/>
127 <xs:enumeration value="Silicon Labs:21"/>
128 <xs:enumeration value="SONiX:110"/>
129 <xs:enumeration value="Spansion:100"/>
130 <xs:enumeration value="STMicroelectronics:13"/>
131 <xs:enumeration value="Sunrise Micro Devices:121"/>
132 <xs:enumeration value="TI:16"/>
133 <xs:enumeration value="Texas Instruments:16"/>
134 <xs:enumeration value="Toshiba:92"/>
135 <xs:enumeration value="Triad Semiconductor:104"/>
136 <xs:enumeration value="WIZnet:122"/>
137 <!-- deprecated: do not use -->
138 <xs:enumeration value="Freescale Semiconductor:78"/>
139 <xs:enumeration value="NXP (founded by Philips):11"/>
140 </xs:restriction>
141 </xs:simpleType>
142
143 <!-- AlgorithmStyleType: allow support of different flash programming algorithm styles -->
144 <xs:simpleType name="AlgorithmStyleType">
145 <xs:restriction base="xs:token">
146 <xs:enumeration value="Keil"/>
147 <xs:enumeration value="IAR"/>
148 <xs:enumeration value="CMSIS"/>
149 </xs:restriction>
150 </xs:simpleType>
151
152 <!-- Component Class Name Type: specify your own Class in taxonomy -->
153 <xs:simpleType name="CclassType">
154 <xs:restriction base="xs:string">
155 <xs:minLength value="3"/>
156 <xs:maxLength value="32"/>
157 </xs:restriction>
158 </xs:simpleType>
159
160 <!-- Component Group Name Type -->
161 <xs:simpleType name="CgroupType">
162 <xs:restriction base="xs:string">
163 <xs:minLength value="3"/>
164 <xs:maxLength value="32"/>
165 </xs:restriction>
166 </xs:simpleType>
167
168 <!-- Component Sub Name Type -->
169 <xs:simpleType name="CsubType">
170 <xs:restriction base="xs:string">
171 <xs:minLength value="0"/>
172 <xs:maxLength value="32"/>
173 </xs:restriction>
174 </xs:simpleType>
175
176 <!-- Component Variant Name Type -->
177 <xs:simpleType name="CvariantType">
178 <xs:restriction base="xs:string">
179 <xs:minLength value="3"/>
180 <xs:maxLength value="32"/>
181 </xs:restriction>
182 </xs:simpleType>
183
184 <!-- AccessType (added in 1.4.4) -->
185 <xs:simpleType name="AccessType">
186 <xs:restriction base="xs:string">
187 <xs:pattern value="[rwxpsnc]+"/>
188 </xs:restriction>
189 </xs:simpleType>
190
191 <!-- Processor Type -->
192 <xs:complexType name="ProcessorType">
193 <!-- Pname defines an identifier for a specific processor in a multi-processor devices -->
194 <xs:attribute name="Pname" type="RestrictedString"/>
195 <!-- Dcore specifies the processor from a list of supported processors -->
196 <xs:attribute name="Dcore" type="DcoreEnum"/>
197 <!-- Dfpu specifies the hardware floating point unit -->
198 <xs:attribute name="Dfpu" type="DfpuEnum"/>
199 <!-- Dmpu specifies the memory protection unit -->
200 <xs:attribute name="Dmpu" type="DmpuEnum"/>
201 <!-- Dendian specifies the endianess supported by the processor -->
202 <xs:attribute name="Dendian" type="DendianEnum"/>
203 <!-- Dclock specifies the maximum core clock frequency -->
204 <xs:attribute name="Dclock" type="xs:unsignedInt"/>
205 <!-- DcoreVersion specifies the revision of the processor -->
206 <xs:attribute name="DcoreVersion" type="xs:string"/>
207 </xs:complexType>
208
209 <!-- Compile Type: -->
210 <xs:complexType name="CompileType">
211 <!-- Pname identifies the processor this setting belongs to -->
212 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
213 <!-- CMSIS-CORE device header file (sets compiler include path) -->
214 <xs:attribute name="header" type="xs:string"/>
215 <!-- Device specific preprocessor define (sets preprocessor define -->
216 <xs:attribute name="define" type="xs:string"/>
217 </xs:complexType>
218
219 <!-- DebugVarsType -->
220 <xs:complexType name="DebugVarsType">
221 <xs:simpleContent>
222 <xs:extension base="xs:string">
223 <xs:attribute name="configfile" type="xs:string" use="optional"/>
224 <xs:attribute name="version" type="VersionType" use="optional"/>
225 <xs:attribute name="Pname" type="xs:string" use="optional"/>
226 <xs:anyAttribute processContents="lax"/>
227 </xs:extension>
228 </xs:simpleContent>
229 </xs:complexType>
230
231 <!-- DebugProtocolEnum -->
232 <xs:simpleType name="DebugProtocolEnum">
233 <xs:restriction base="xs:token">
234 <xs:enumeration value="jtag"/>
Joachim Krech637681b2016-05-13 09:03:56 +0200235 <xs:enumeration value="cjtag"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100236 <xs:enumeration value="swd"/>
237 </xs:restriction>
238 </xs:simpleType>
239
240 <!-- DebugConfigType -->
241 <xs:complexType name="DebugConfigType">
242 <xs:attribute name="default" type="DebugProtocolEnum" use="optional" default="swd"/>
243 <xs:attribute name="clock" type="xs:unsignedInt" use="optional"/>
244 <xs:attribute name="swj" type="xs:boolean" use="optional"/>
245 <!-- Debugger System Description File -->
246 <xs:attribute name="sdf" type="xs:string" use="optional"/>
247 <xs:anyAttribute processContents="lax"/>
248 </xs:complexType>
249
250 <!-- JtagType -->
251 <xs:complexType name="JtagType">
252 <xs:attribute name="tapindex" type="NonNegativeInteger" use="optional"/>
253 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
254 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
255 <xs:attribute name="irlen" type="xs:unsignedInt" use="optional"/>
256 <xs:anyAttribute processContents="lax"/>
257 </xs:complexType>
258
259 <!-- SwdType -->
260 <xs:complexType name="SwdType">
261 <xs:attribute name="idcode" type="NonNegativeInteger" use="optional"/>
262 <xs:attribute name="targetsel" type="NonNegativeInteger" use="optional"/>
263 <xs:anyAttribute processContents="lax"/>
264 </xs:complexType>
265
266 <!-- DebugPortType -->
267 <xs:complexType name="DebugPortType">
268 <xs:sequence>
269 <xs:element name="jtag" type="JtagType" minOccurs="0" maxOccurs="1"/>
270 <xs:element name="swd" type="SwdType" minOccurs="0" maxOccurs="1"/>
271 </xs:sequence>
272 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
273 <xs:anyAttribute processContents="lax"/>
274 </xs:complexType>
275
276 <!-- DataPatchAccessTypeEnum enumeration type -->
277 <xs:simpleType name="DataPatchAccessTypeEnum">
278 <xs:restriction base="xs:token">
279 <xs:enumeration value="DP"/>
280 <xs:enumeration value="AP"/>
281 <xs:enumeration value="Mem"/>
282 </xs:restriction>
283 </xs:simpleType>
284
285 <!-- ExpressionType -->
286 <xs:simpleType name="ExpressionType">
287 <xs:restriction base="xs:string"/>
288 </xs:simpleType>
289
290 <!-- DataPatchType -->
291 <xs:complexType name="DataPatchType">
292 <xs:attribute name="type" type="DataPatchAccessTypeEnum" use="optional"/>
293 <xs:attribute name="address" type="NonNegativeInteger" use="required"/>
294 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
295 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/>
296 <xs:attribute name="value" type="NonNegativeInteger" use="required"/>
297 <xs:attribute name="mask" type="NonNegativeInteger" use="optional"/>
298 <xs:attribute name="info" type="xs:string" use="optional"/>
299 <xs:anyAttribute processContents="lax"/>
300 </xs:complexType>
301
302 <!-- BlockType -->
303 <xs:complexType name="SequenceBlockType">
304 <xs:simpleContent>
305 <xs:extension base="xs:string">
306 <xs:attribute name="atomic" type="xs:boolean" use="optional"/>
307 <xs:attribute name="info" type="xs:string" use="optional"/>
308 <xs:anyAttribute processContents="lax"/>
309 </xs:extension>
310 </xs:simpleContent>
311 </xs:complexType>
312
313 <!-- ControlType -->
314 <xs:complexType name="SequenceControlType">
315 <xs:sequence>
316 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
317 </xs:sequence>
318 <xs:attribute name="if" type="xs:string" use="optional"/>
319 <xs:attribute name="while" type="ExpressionType" use="optional"/>
320 <xs:attribute name="timeout" type="xs:unsignedInt" use="optional"/>
321 <xs:attribute name="info" type="xs:string" use="optional"/>
322 <xs:anyAttribute processContents="lax"/>
323 </xs:complexType>
324
325 <!-- SequenceElementType -->
326 <xs:group name="SequenceElementGroup">
327 <xs:choice>
328 <xs:element name="block" type="SequenceBlockType"/>
329 <xs:element name="control" type="SequenceControlType"/>
330 </xs:choice>
331 </xs:group>
332
333
334 <!-- SequenceType -->
335 <xs:complexType name="SequenceType">
336 <xs:sequence>
337 <xs:group ref="SequenceElementGroup" minOccurs="0" maxOccurs="unbounded"/>
338 </xs:sequence>
339 <xs:attribute name="name" type="xs:string" use="required"/>
340 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
341 <xs:attribute name="disable" type="xs:boolean" use="optional"/>
342 <xs:attribute name="info" type="xs:string" use="optional"/>
343 <xs:anyAttribute processContents="lax"/>
344 </xs:complexType>
345
346 <!-- SequencesType -->
347 <xs:complexType name="SequencesType">
348 <xs:sequence>
349 <xs:element name="sequence" type="SequenceType" minOccurs="1" maxOccurs="unbounded"/>
350 </xs:sequence>
351 <xs:anyAttribute processContents="lax"/>
352 </xs:complexType>
353
354 <!-- DebugType -->
355 <xs:complexType name="DebugType">
356 <xs:sequence>
357 <xs:element name="datapatch" type="DataPatchType" minOccurs="0" maxOccurs="unbounded"/>
358 </xs:sequence>
359 <xs:attribute name="__dp" type="xs:unsignedInt" use="optional"/>
360 <xs:attribute name="__ap" type="xs:unsignedInt" use="optional"/> <!-- access port index -->
361 <xs:attribute name="svd" type="xs:string" use="optional"/>
362 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
Joachim Krech637681b2016-05-13 09:03:56 +0200363 <xs:attribute name="defaultResetSequence" type="xs:string" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100364 <xs:anyAttribute processContents="lax"/>
365 </xs:complexType>
366
367 <!-- SerialWireType -->
368 <xs:complexType name="SerialWireType">
369 <xs:anyAttribute processContents="lax"/>
370 </xs:complexType>
371
372 <!-- TracePortType -->
373 <xs:complexType name="TracePortType">
374 <xs:attribute name="width" type="NonNegativeInteger" use="optional"/>
375 <xs:anyAttribute processContents="skip"/>
376 </xs:complexType>
377
378 <!-- TraceBufferType -->
379 <xs:complexType name="TraceBufferType">
380 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
381 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
382 <xs:anyAttribute processContents="skip"/>
383 </xs:complexType>
384
385 <!-- TraceType -->
386 <xs:complexType name="TraceType">
387 <xs:sequence>
388 <xs:element name="serialwire" type="SerialWireType" minOccurs="0" maxOccurs="unbounded"/>
389 <xs:element name="traceport" type="TracePortType" minOccurs="0" maxOccurs="unbounded"/>
390 <xs:element name="tracebuffer" type="TraceBufferType" minOccurs="0" maxOccurs="unbounded"/>
391 </xs:sequence>
392 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
393 <xs:anyAttribute processContents="lax"/>
394 </xs:complexType>
395
396 <!-- Memory Type-->
397 <xs:complexType name="MemoryType">
398 <!-- Pname identifies the processor this setting belongs to -->
399 <xs:attribute name="Pname" type="RestrictedString"/>
400 <!-- id specifies the enumerated ID of memory (deprecated in 1.4.4) -->
401 <xs:attribute name="id" type="MemoryIDTypeEnum" use="optional"/>
402 <!-- name specifies an identifier being use to refer to this memory range description (added in 1.4.4) -->
403 <xs:attribute name="name" type="RestrictedString" use="optional"/>
404 <!-- start specifies the base address of the memory -->
405 <xs:attribute name="start" type="NonNegativeInteger" use="required"/>
406 <!-- size specifies the size of the memory -->
407 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
408 <!-- access: specifies the access permissions of the memory (added in 1.4.4) -->
Joachim Krech637681b2016-05-13 09:03:56 +0200409 <xs:attribute name="access" type="AccessType" use="optional" default="r"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100410 <!-- alias: reference to another memory by 'name' to express that the same physical memory is mapped at another address (added in 1.4.4) -->
411 <xs:attribute name="alias" type="RestrictedString" use="optional"/>
412 <!-- !!! deprecated, do not use / ignore !!! specifies whether the memory shall be 0 initialized -->
413 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
414 <!-- specifies whether the memory is used as default by linker -->
415 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
416 <!-- specifies whether the memory shall be used for the startup by linker -->
417 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
418 </xs:complexType>
419
420 <!-- Algorithm Type -->
421 <xs:complexType name="AlgorithmType">
422 <!-- Pname identifies the processor this setting belongs to -->
423 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
424 <!-- name specifies the path and filename of the Flash Programming Algorithm -->
425 <xs:attribute name="name" type="xs:string" use="required"/>
426 <!-- start specifies the base address of the memory range that gets programmed -->
427 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
428 <!-- size specifies the size of the memory range that gets programmed -->
429 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
430 <!-- RAMstart specifies the base address in RAM from where the algorithm is executed -->
431 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
432 <!-- RAMsize specifies the available RAM for executing the algorithm -->
433 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
434 <!-- if default is set the algorithm will be configured for any new project -->
435 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
436 <!-- style attribute: specifies the programming algorithm format (added in 1.4.4) -->
437 <xs:attribute name="style" type="AlgorithmStyleType" use="optional" default="Keil"/>
438 <!-- parameter attribute: parmeter passed on algorithm invocation (added in 1.4.4) -->
439 <xs:attribute name="parameter" type="xs:string" use="optional"/>
440 <!-- endian attribute: specifies the endianess of the algorithm (added in 1.4.4) -->
441 <xs:attribute name="endian" type="DendianEnum" use="optional" default="Little-endian"/>
442 </xs:complexType>
443
444 <!-- Book Type -->
445 <xs:complexType name="BookType">
446 <!-- Pname identifies the processor this setting belongs to -->
447 <xs:attribute name="Pname" type="RestrictedString"/>
448 <!-- name specifies the path and filename of the document -->
449 <xs:attribute name="name" type="xs:string" use="required"/>
450 <!-- title specifies the string displayed for this document -->
451 <xs:attribute name="title" type="xs:string" use="required"/>
452 </xs:complexType>
453
454 <!-- Description Type-->
455 <xs:complexType name="DescriptionType">
456 <xs:simpleContent>
457 <xs:extension base="xs:string">
458 <!-- Pname identifies the processor this setting belongs to -->
459 <xs:attribute name="Pname" type="RestrictedString"/>
460 </xs:extension>
461 </xs:simpleContent>
462 </xs:complexType>
463
464 <!-- Device Feature Type -->
465 <xs:complexType name="DeviceFeatureType">
466 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
467 <!-- <xs:attribute name="type" type="DeviceFeatureTypeEnum" use="required"/> -->
468 <xs:attribute name="type" type="xs:string" use="required"/>
469 <xs:attribute name="n" type="xs:decimal" use="optional"/>
470 <xs:attribute name="m" type="xs:decimal" use="optional"/>
471 <xs:attribute name="name" type="xs:string" use="optional"/>
472 <!-- deprecated, only for backwards compatibility -->
473 <xs:attribute name="count" type="xs:int" use="optional"/>
474 </xs:complexType>
475
476 <!-- Board Feature Type -->
477 <xs:complexType name="BoardFeatureType">
478 <!-- <xs:attribute name="type" type="BoardFeatureTypeEnum" use="required"/> -->
479 <xs:attribute name="type" type="xs:string" use="required"/>
480 <xs:attribute name="n" type="xs:decimal" use="optional"/>
481 <xs:attribute name="m" type="xs:decimal" use="optional"/>
482 <xs:attribute name="name" type="xs:string" use="optional"/>
483 </xs:complexType>
484
485 <!-- Environment Type -->
486 <xs:complexType name="EnvironmentType">
487 <xs:sequence>
488 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
489 </xs:sequence>
490 <!-- name identifies the environment (e.g. "uv" for uVision ) this setting belongs to -->
491 <xs:attribute name="name" type="xs:string" use="required"/>
492 <!-- Pname identifies the processor this setting belongs to -->
493 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
494 <xs:anyAttribute></xs:anyAttribute>
495 </xs:complexType>
496
497 <!-- Default Device Properties Group -->
498 <xs:group name="DefaultDevicePropertiesGroup">
499 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
500 <xs:choice>
501 <xs:element name="compile" type="CompileType" />
502 <xs:element name="memory" type="MemoryType" />
503 <xs:element name="algorithm" type="AlgorithmType" />
504 <xs:element name="book" type="BookType" />
505 <xs:element name="description" type="DescriptionType" />
506 <xs:element name="feature" type="DeviceFeatureType" />
507 <xs:element name="environment" type="EnvironmentType" />
508 <xs:element name="debugport" type="DebugPortType" />
509 <xs:element name="debug" type="DebugType" />
510 <xs:element name="trace" type="TraceType" />
511 <xs:element name="debugvars" type="DebugVarsType" />
512 <xs:element name="sequences" type="SequencesType" />
513 </xs:choice>
514 </xs:group>
515
516 <!-- Device Properties Group -->
517 <xs:group name="DevicePropertiesGroup">
518 <!-- multi-core devices have unique Pname attribute. One entry per processor and level -->
519 <xs:sequence>
520 <xs:element name="processor" type="ProcessorType" minOccurs="0" maxOccurs="unbounded"/>
521 <xs:element name="debugconfig" type="DebugConfigType" minOccurs="0" maxOccurs="1"/>
522 <xs:group ref="DefaultDevicePropertiesGroup" minOccurs="0" maxOccurs="unbounded"/>
523 </xs:sequence>
524 </xs:group>
525
526 <xs:complexType name="DeviceType">
527 <xs:sequence>
528 <xs:group ref="DevicePropertiesGroup"/>
529 <!-- Variant Level begin-->
530 <xs:element name="variant" minOccurs="0" maxOccurs="unbounded">
531 <xs:complexType>
532 <xs:sequence>
533 <xs:group ref="DevicePropertiesGroup"/>
534 </xs:sequence>
535 <xs:attribute name="Dvariant" type="RestrictedString" use="required"/>
536 </xs:complexType>
537 </xs:element>
538 <!-- Variant Level end -->
539 </xs:sequence>
Joachim Krech637681b2016-05-13 09:03:56 +0200540 <xs:attribute name="Dname" type="RestrictedString" use="required"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100541 <!-- <xs:attributeGroup ref="DefaultDeviceAttributesGroup"/> -->
542 </xs:complexType>
543
544 <!-- Dcore enumeration type -->
545 <xs:simpleType name="DcoreEnum">
546 <xs:restriction base="xs:token">
547 <xs:enumeration value="SC000"/>
548 <xs:enumeration value="SC300"/>
549 <xs:enumeration value="Cortex-M0"/>
550 <xs:enumeration value="Cortex-M0+"/>
551 <xs:enumeration value="Cortex-M1"/>
552 <xs:enumeration value="Cortex-M3"/>
553 <xs:enumeration value="Cortex-M4"/>
554 <xs:enumeration value="Cortex-M7"/>
555 <xs:enumeration value="Cortex-R4"/>
556 <xs:enumeration value="Cortex-R5"/>
557 <xs:enumeration value="Cortex-A5"/>
558 <xs:enumeration value="Cortex-A7"/>
559 <xs:enumeration value="Cortex-A8"/>
560 <xs:enumeration value="Cortex-A9"/>
561 <xs:enumeration value="Cortex-A15"/>
562 <xs:enumeration value="Cortex-A17"/>
563 <xs:enumeration value="Cortex-A53"/>
564 <xs:enumeration value="Cortex-A57"/>
565 <xs:enumeration value="Cortex-A72"/>
566 <xs:enumeration value="ARMV8MBL"/>
567 <xs:enumeration value="ARMV8MML"/>
568 <xs:enumeration value="other"/>
569 </xs:restriction>
570 </xs:simpleType>
571
572
573 <!-- DeviceFeatureTypeEnum -->
574 <xs:simpleType name="DeviceFeatureTypeEnum">
575 <xs:restriction base="xs:token">
576 <xs:enumeration value="Crypto"/>
577 <xs:enumeration value="NVIC"/>
578 <xs:enumeration value="DMA"/>
579 <xs:enumeration value="RNG"/>
580 <xs:enumeration value="CoreOther"/>
581 <xs:enumeration value="ExtBus"/>
582 <xs:enumeration value="Memory"/>
583 <xs:enumeration value="MemoryOther"/>
584 <xs:enumeration value="XTAL"/>
585 <xs:enumeration value="IntRC"/>
586 <xs:enumeration value="PLL"/>
587 <xs:enumeration value="RTC"/>
588 <xs:enumeration value="ClockOther"/>
589 <xs:enumeration value="PowerMode"/>
590 <xs:enumeration value="VCC"/>
591 <xs:enumeration value="Consumption"/>
592 <xs:enumeration value="PowerOther"/>
593 <xs:enumeration value="BGA"/>
594 <xs:enumeration value="CSP"/>
595 <xs:enumeration value="PLCC"/>
596 <xs:enumeration value="QFN"/>
597 <xs:enumeration value="QFP"/>
598 <xs:enumeration value="SOP"/>
599 <xs:enumeration value="DIP"/>
600 <xs:enumeration value="PackageOther"/>
601 <xs:enumeration value="IOs"/>
602 <xs:enumeration value="ExtInt"/>
603 <xs:enumeration value="Temp"/>
604 <xs:enumeration value="ADC"/>
605 <xs:enumeration value="DAC"/>
606 <xs:enumeration value="TempSens"/>
607 <xs:enumeration value="AnalogOther"/>
608 <xs:enumeration value="PWM"/>
609 <xs:enumeration value="Timer"/>
610 <xs:enumeration value="WDT"/>
611 <xs:enumeration value="TimerOther"/>
612 <xs:enumeration value="MPSerial"/>
613 <xs:enumeration value="CAN"/>
614 <xs:enumeration value="ETH"/>
615 <xs:enumeration value="I2C"/>
616 <xs:enumeration value="I2S"/>
617 <xs:enumeration value="LIN"/>
618 <xs:enumeration value="SDIO"/>
619 <xs:enumeration value="SPI"/>
620 <xs:enumeration value="UART"/>
621 <xs:enumeration value="USART"/>
622 <xs:enumeration value="USBD"/>
623 <xs:enumeration value="USBH"/>
624 <xs:enumeration value="USBOTG"/>
625 <xs:enumeration value="ComOther"/>
626 <xs:enumeration value="Camera"/>
627 <xs:enumeration value="GLCD"/>
628 <xs:enumeration value="LCD"/>
629 <xs:enumeration value="Touch"/>
630 <xs:enumeration value="Other"/>
631 <!-- deprecated, only for backwards compatibility -->
632 <xs:enumeration value="I/O"/>
633 <xs:enumeration value="D/A"/>
634 <xs:enumeration value="A/D"/>
635 <xs:enumeration value="Com"/>
636 <xs:enumeration value="USB"/>
637 <xs:enumeration value="Package"/>
638 <xs:enumeration value="Backup"/>
639 </xs:restriction>
640 </xs:simpleType>
641
642 <!-- BoardFeatureTypeEnum -->
643 <xs:simpleType name="BoardFeatureTypeEnum">
644 <xs:restriction base="xs:token">
645 <xs:enumeration value="ODbg"/>
646 <xs:enumeration value="XTAL"/>
647 <xs:enumeration value="PWR"/>
648 <xs:enumeration value="PWR"/>
649 <xs:enumeration value="PWRSock"/>
650 <xs:enumeration value="Batt"/>
651 <xs:enumeration value="Curr"/>
652 <xs:enumeration value="CoreOther"/>
653 <xs:enumeration value="RAM"/>
654 <xs:enumeration value="ROM"/>
655 <xs:enumeration value="Memory"/>
656 <xs:enumeration value="MemCard"/>
657 <xs:enumeration value="MemoryOther"/>
658 <xs:enumeration value="DIO"/>
659 <xs:enumeration value="AIO"/>
660 <xs:enumeration value="Proto"/>
661 <xs:enumeration value="USB"/>
662 <xs:enumeration value="ETH"/>
663 <xs:enumeration value="SPI"/>
664 <xs:enumeration value="I2C"/>
665 <xs:enumeration value="RS232"/>
666 <xs:enumeration value="RS422"/>
667 <xs:enumeration value="RS485"/>
668 <xs:enumeration value="CAN"/>
669 <xs:enumeration value="IrDA"/>
670 <xs:enumeration value="LineIn"/>
671 <xs:enumeration value="LineOut"/>
672 <xs:enumeration value="MIC"/>
673 <xs:enumeration value="Edge"/>
674 <xs:enumeration value="ConnOther"/>
675 <xs:enumeration value="Button"/>
676 <xs:enumeration value="Poti"/>
677 <xs:enumeration value="Joystick"/>
678 <xs:enumeration value="Touch"/>
679 <xs:enumeration value="ContOther"/>
680 <xs:enumeration value="Accelerometer"/>
681 <xs:enumeration value="Gyro"/>
682 <xs:enumeration value="Compass"/>
683 <xs:enumeration value="TempSens"/>
684 <xs:enumeration value="PressSens"/>
685 <xs:enumeration value="LightSens"/>
686 <xs:enumeration value="SensOther"/>
687 <xs:enumeration value="CustomFF"/>
688 <xs:enumeration value="ArduinoFF"/>
689 <xs:enumeration value="FreedomFF"/>
690 <xs:enumeration value="TowerFF"/>
691 <xs:enumeration value="LED"/>
692 <xs:enumeration value="Camera"/>
693 <xs:enumeration value="LCD"/>
694 <xs:enumeration value="GLCD"/>
695 <xs:enumeration value="Speaker"/>
696 <xs:enumeration value="Other"/>
697 </xs:restriction>
698 </xs:simpleType>
699
700 <!-- eraseTypeEnum -->
701 <xs:simpleType name="EraseTypeEnum">
702 <xs:restriction base="xs:token">
703 <xs:enumeration value="sector"/>
704 <xs:enumeration value="full"/>
705 <xs:enumeration value="no"/>
706 </xs:restriction>
707 </xs:simpleType>
708
709 <!-- MemoryIDTypeEnum -->
710 <xs:simpleType name="MemoryIDTypeEnum">
711 <xs:restriction base="xs:token">
712 <xs:enumeration value="IRAM1"/>
713 <xs:enumeration value="IRAM2"/>
714 <xs:enumeration value="IRAM3"/>
715 <xs:enumeration value="IRAM4"/>
716 <xs:enumeration value="IRAM5"/>
717 <xs:enumeration value="IRAM6"/>
718 <xs:enumeration value="IRAM7"/>
719 <xs:enumeration value="IRAM8"/>
720 <xs:enumeration value="IROM1"/>
721 <xs:enumeration value="IROM2"/>
722 <xs:enumeration value="IROM3"/>
723 <xs:enumeration value="IROM4"/>
724 <xs:enumeration value="IROM5"/>
725 <xs:enumeration value="IROM6"/>
726 <xs:enumeration value="IROM7"/>
727 <xs:enumeration value="IROM8"/>
728 </xs:restriction>
729 </xs:simpleType>
730
731 <!-- Dendian enumeration type -->
732 <xs:simpleType name="DendianEnum">
733 <xs:restriction base="xs:token">
734 <xs:enumeration value="Little-endian"/>
735 <xs:enumeration value="Big-endian"/>
736 <xs:enumeration value="Configurable"/>
737 <xs:enumeration value="*"/>
738 </xs:restriction>
739 </xs:simpleType>
740
741 <!-- Dfpu enumeration type -->
742 <xs:simpleType name="DfpuEnum">
743 <xs:restriction base="xs:token">
744 <!-- core has FPU (type of FPU depends on Dcore) -->
745 <xs:enumeration value="FPU"/>
746 <xs:enumeration value="1"/>
747 <!-- core has no FPU -->
748 <xs:enumeration value="NO_FPU"/>
749 <xs:enumeration value="0"/>
750 <!-- single precision FPU -->
751 <xs:enumeration value="SP_FPU"/>
752 <!-- double precision FPU -->
753 <xs:enumeration value="DP_FPU"/>
754 <!-- any -->
755 <xs:enumeration value="*"/>
756 </xs:restriction>
757 </xs:simpleType>
758
759 <!-- Dmpu enumeration type -->
760 <xs:simpleType name="DmpuEnum">
761 <xs:restriction base="xs:token">
762 <xs:enumeration value="MPU"/>
763 <xs:enumeration value="NO_MPU"/>
764 <xs:enumeration value="0"/>
765 <xs:enumeration value="1"/>
766 <xs:enumeration value="*"/>
767 </xs:restriction>
768 </xs:simpleType>
769
770 <!-- file category type -->
771 <xs:simpleType name="FileCategoryType">
772 <xs:restriction base="xs:token">
773 <xs:enumeration value="doc"/>
774 <xs:enumeration value="header"/>
775 <xs:enumeration value="include"/>
776 <xs:enumeration value="library"/>
777 <xs:enumeration value="object"/>
778 <xs:enumeration value="source"/>
779 <xs:enumeration value="sourceC"/>
780 <xs:enumeration value="sourceCpp"/>
781 <xs:enumeration value="sourceAsm"/>
782 <xs:enumeration value="linkerScript"/>
783 <xs:enumeration value="utility"/>
784 <xs:enumeration value="image"/>
785 <xs:enumeration value="other"/>
786 </xs:restriction>
787 </xs:simpleType>
788
789 <!-- file attribute type -->
790 <xs:simpleType name="FileAttributeType">
791 <xs:restriction base="xs:token">
792 <xs:enumeration value="config"/>
793 <xs:enumeration value="copy"/>
794 <xs:enumeration value="template"/>
795 <xs:enumeration value="interface"/>
796 </xs:restriction>
797 </xs:simpleType>
798
799
800 <!-- compiler toolchain enumeration -->
801 <xs:simpleType name="CompilerEnumType">
802 <xs:restriction base="xs:token">
803 <xs:enumeration value="GCC"/>
804 <xs:enumeration value="ARMCC"/>
805 <xs:enumeration value="IAR"/>
806 <xs:enumeration value="Tasking"/>
807 <xs:enumeration value="GHS"/>
808 <xs:enumeration value="Cosmic"/>
809 <xs:enumeration value="G++"/> <!-- Code Sourcery -->
810 <xs:enumeration value="*"/>
811 </xs:restriction>
812 </xs:simpleType>
813 <!-- compiler output enumeration -->
814 <xs:simpleType name="CompilerOutputType">
815 <xs:restriction base="xs:token">
816 <xs:enumeration value="exe"/> <!-- executable -->
817 <xs:enumeration value="lib"/> <!-- library -->
818 <xs:enumeration value="*"/>
819 </xs:restriction>
820 </xs:simpleType>
821
822
823
824 <xs:complexType name="FilterType">
825 <xs:attribute name="Dfamily" type="xs:string"/> <!-- deprecated as they are too weak for filtering -->
826 <xs:attribute name="DsubFamily" type="xs:string"/> <!-- deprecated as tehy are too weak for filtering -->
827 <xs:attribute name="Dvariant" type="xs:string"/>
828 <xs:attribute name="Dvendor" type="DeviceVendorEnum"/>
829 <xs:attribute name="Dname" type="xs:string"/> <!-- can contain wildcards ?* in condition -->
830 <xs:attribute name="Dcore" type="DcoreEnum"/>
831 <xs:attribute name="Dfpu" type="DfpuEnum"/>
832 <xs:attribute name="Dmpu" type="DmpuEnum"/>
833 <xs:attribute name="Dendian" type="DendianEnum"/>
834 <xs:attribute name="Pname" type="RestrictedString"/>
835 <xs:attribute name="Cvendor" type="xs:string"/>
836 <xs:attribute name="Cbundle" type="xs:string"/>
837 <xs:attribute name="Cclass" type="CclassType"/>
838 <xs:attribute name="Cgroup" type="CgroupType"/>
839 <xs:attribute name="Csub" type="CsubType"/>
840 <xs:attribute name="Cvariant" type="CvariantType"/>
841 <xs:attribute name="Cversion" type="ConditionVersionType"/>
842 <xs:attribute name="Capiversion" type="ConditionVersionType"/>
843 <xs:attribute name="Tcompiler" type="CompilerEnumType"/>
844 <xs:attribute name="Toutput" type="CompilerOutputType"/>
845 <xs:attribute name="condition" type="xs:string"/>
846 </xs:complexType>
847
848 <!-- taxonomy description type definition -->
849 <xs:complexType name="TaxonomyDescriptionType">
850 <xs:simpleContent>
851 <xs:extension base='xs:string'>
852 <xs:attribute name="Cclass" type="CclassType" use="required"/> <!-- Class the description is associated with -->
853 <xs:attribute name="Cgroup" type="CgroupType" use="optional"/> <!-- Group the description is associated with -->
854 <xs:attribute name="doc" type="xs:string" use="optional"/> <!-- link to documentation for the :Class:[Group] -->
855 <xs:attribute name="generator" type="xs:string" use="optional"/> <!-- link a generator to a taxonomy -->
856 </xs:extension>
857 </xs:simpleContent>
858 </xs:complexType>
859
860 <xs:complexType name="TaxonomyType">
861 <xs:sequence>
862 <xs:element name="description" type="TaxonomyDescriptionType" minOccurs="1" maxOccurs="unbounded"/>
863 </xs:sequence>
864 </xs:complexType>
865
866 <!-- API type definition -->
867 <xs:complexType name="ApiType">
868 <xs:sequence>
869 <xs:element name="description" type="xs:string" minOccurs="0"/>
870 <!-- list of files / content -->
871 <xs:element name="files">
872 <xs:complexType>
873 <xs:sequence>
874 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
875 </xs:sequence>
876 </xs:complexType>
877 </xs:element>
878 </xs:sequence>
879 <xs:attribute name="Cclass" type="CclassType" use="required"/>
880 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
881 <xs:attribute name="exclusive" type="xs:boolean" use="optional" default="1"/>
882 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
883 </xs:complexType>
884
885 <xs:complexType name="ApisType">
886 <xs:sequence>
887 <xs:element name="api" type="ApiType" minOccurs="1" maxOccurs="unbounded"/>
888 </xs:sequence>
889 </xs:complexType>
890
891 <xs:complexType name="ConditionType">
892 <xs:sequence>
893 <xs:element name="description" type="xs:string" minOccurs="0"/>
894 <xs:choice minOccurs="1" maxOccurs="unbounded">
895 <xs:element name="accept" type="FilterType"/>
896 <xs:element name="require" type="FilterType"/>
897 <xs:element name="deny" type="FilterType"/>
898 </xs:choice>
899 </xs:sequence>
900 <xs:attribute name="id" type="xs:string" use="required"/>
901 </xs:complexType>
902
903 <xs:complexType name="ConditionsType">
904 <xs:sequence>
905 <xs:element name="condition" type="ConditionType" minOccurs="1" maxOccurs="unbounded"/>
906 </xs:sequence>
907 </xs:complexType>
908
909 <xs:complexType name="ComponentCategoryType">
Joachim Krech637681b2016-05-13 09:03:56 +0200910 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
911 <xs:attribute name="Cbundle" type="xs:string" use="optional"/>
912 <xs:attribute name="Cclass" type="CclassType" use="required"/>
913 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
914 <xs:attribute name="Csub" type="CsubType" use="optional"/>
915 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100916 <xs:attribute name="Cversion" type="ConditionVersionType" use="optional"/>
917 <xs:attribute name="Capiversion" type="ConditionVersionType" use="optional"/>
Joachim Krech637681b2016-05-13 09:03:56 +0200918 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
Joachim Krechc4773412016-02-18 09:17:07 +0100919 </xs:complexType>
920
921 <xs:complexType name="ExampleProjectType">
922 <xs:sequence>
923 <xs:element name="environment" maxOccurs="unbounded">
924 <xs:complexType>
925 <xs:attribute name="name" type="xs:string" use="required"/>
926 <xs:attribute name="load" type="xs:string" use="required"/>
927 </xs:complexType>
928 </xs:element>
929 </xs:sequence>
930 </xs:complexType>
931
932 <xs:complexType name="BoardReferenceType">
933 <xs:attribute name="name" type="xs:string" use="required"/> <!-- refers to Board Description by name -->
934 <xs:attribute name="vendor" type="xs:string" use="required"/> <!-- refers to Board Description by vendor -->
935 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/> <!-- deprecated in 1.2 -->
936 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
937 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
938 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- deprecated in 1.2 -->
939 </xs:complexType>
940
941 <xs:complexType name="CompatibleDeviceType">
942 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
943 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="optional"/>
944 <xs:attribute name="Dfamily" type="xs:string" use="optional"/>
945 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/>
946 <xs:attribute name="Dname" type="xs:string" use="optional"/>
947 </xs:complexType>
948
949 <xs:complexType name="BoardsDeviceType">
950 <xs:attribute name="deviceIndex" type="xs:string" use="optional" />
951 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
952 <xs:attribute name="Dfamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
953 <xs:attribute name="DsubFamily" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
954 <xs:attribute name="Dname" type="xs:string" use="optional"/> <!-- use Dfamiliy or DsubFamily or Dname attribute exclusively -->
955 </xs:complexType>
956
957 <xs:simpleType name="BoardBookCategoryEnum">
958 <xs:restriction base="xs:token">
959 <xs:enumeration value="setup"/>
960 <xs:enumeration value="schematic"/>
961 <xs:enumeration value="overview"/>
962 <xs:enumeration value="manual"/>
963 <xs:enumeration value="other"/>
964 </xs:restriction>
965 </xs:simpleType>
966
967 <xs:complexType name="BoardsBookType">
968 <xs:attribute name="category" type="BoardBookCategoryEnum"/>
969 <xs:attribute name="name" type="xs:string"/>
970 <xs:attribute name="title" type="xs:string"/>
971 </xs:complexType>
972
973 <xs:complexType name="DebugInterfaceType">
974 <xs:attribute name="adapter" type="xs:string"/>
975 <xs:attribute name="connector" type="xs:string"/>
976 </xs:complexType>
977
978 <xs:group name="BoardElementsGroup">
979 <xs:choice>
980 <xs:element name="description" type="xs:string"/>
981 <xs:element name="feature" type="BoardFeatureType" maxOccurs="unbounded"></xs:element>
982 <xs:element name="mountedDevice" type="BoardsDeviceType" maxOccurs="unbounded"/>
983 <xs:element name="compatibleDevice" type="CompatibleDeviceType" maxOccurs="unbounded"/>
984 <xs:element name="image">
985 <xs:complexType>
986 <xs:attribute name="small" type="xs:string" use="optional"/>
987 <xs:attribute name="large" type="xs:string" use="optional"/>
988 </xs:complexType>
989 </xs:element>
990 <xs:element name="debugInterface" type="DebugInterfaceType" maxOccurs="unbounded"/>
991 <xs:element name="book" type="BoardsBookType" maxOccurs="unbounded"/>
992 </xs:choice>
993 </xs:group>
994
995 <xs:complexType name="BoardType">
996 <xs:sequence>
997 <xs:group ref="BoardElementsGroup" minOccurs="1" maxOccurs="unbounded"/>
998 </xs:sequence>
999 <xs:attribute name="vendor" type="xs:string" use="required"/>
1000 <xs:attribute name="name" type="xs:string" use="required"/>
1001 <xs:attribute name="revision" type="xs:string" use="optional"/>
1002 <xs:attribute name="salesContact" type="xs:string" use="optional"/>
1003 <xs:attribute name="orderForm" type="xs:anyURI" use="optional"/>
1004 </xs:complexType>
1005
1006 <xs:complexType name="BoardsType">
1007 <xs:sequence>
1008 <xs:element name="board" type="BoardType" maxOccurs="unbounded"/>
1009 </xs:sequence>
1010 </xs:complexType>
1011
1012 <xs:complexType name="ExampleAttributesType">
1013 <xs:choice maxOccurs="unbounded">
1014 <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1015 <xs:element name="component" type="ComponentCategoryType" minOccurs="0" maxOccurs="unbounded"/>
1016 <xs:element name="keyword" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1017 </xs:choice>
1018 </xs:complexType>
1019
1020 <xs:complexType name="ExampleType">
1021 <xs:sequence>
1022 <!-- brief example description -->
1023 <xs:element name="description" type="xs:string"/>
1024 <!-- references the board -->
1025 <xs:element name="board" type="BoardReferenceType" maxOccurs="unbounded"/>
1026 <!-- lists environments with their load files -->
1027 <xs:element name="project" type="ExampleProjectType"/>
1028 <!-- categories, keywords and used components -->
1029 <xs:element name="attributes" type="ExampleAttributesType" />
1030 </xs:sequence>
1031 <!-- display name of the example -->
1032 <xs:attribute name="name" type="xs:string" use="required"/>
1033 <!-- relative folder where the example is stored in the package -->
1034 <xs:attribute name="folder" type="xs:string" use="required"/>
1035 <!-- archive file name with extension located in folder -->
1036 <xs:attribute name="archive" type="xs:string" use="optional"/>
1037 <!-- file name with extension relative to folder -->
1038 <xs:attribute name="doc" type="xs:string" use="required"/>
1039 <!-- version of the example -->
1040 <xs:attribute name="version" type="xs:string" use="optional"/>
1041 </xs:complexType>
1042
Joachim Krech637681b2016-05-13 09:03:56 +02001043 <!-- section listing all examples contained in the package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001044 <xs:complexType name="ExamplesType">
1045 <xs:sequence>
1046 <xs:element name="example" type="ExampleType" maxOccurs="unbounded"/>
1047 </xs:sequence>
1048 </xs:complexType>
1049
1050 <xs:complexType name="KeywordsType">
1051 <xs:sequence>
1052 <xs:element name="keyword" type="xs:string" maxOccurs="unbounded"/>
1053 </xs:sequence>
1054 </xs:complexType>
1055
Joachim Krech637681b2016-05-13 09:03:56 +02001056 <xs:simpleType name="InstancesType">
Joachim Krechc4773412016-02-18 09:17:07 +01001057 <xs:restriction base="xs:integer">
1058 <xs:minInclusive value="1"/>
1059 </xs:restriction>
1060 </xs:simpleType>
1061
1062 <!-- Component file type definition -->
1063 <xs:complexType name="FileType">
1064 <xs:attribute name="condition" type="xs:string" use="optional"/>
1065 <!-- file item category: source, header, include path, etc. -->
1066 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1067 <!-- file item action attribute : config (copy to project, template, interface) -->
1068 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1069 <!-- description for "template" or "interface" files. Multiple items are combined when they have the same select attribute -->
1070 <xs:attribute name="select" type="xs:string" use ="optional"/>
1071 <!-- path + filename + extension -->
1072 <xs:attribute name="name" type ="xs:string" use="required" />
1073 <!-- copy file to project folder: deprecated, use attr="config" instead -->
1074 <xs:attribute name="copy" type ="xs:string" use="optional"/>
1075 <!-- simple file version: to be used by RTE copy file action to see whether the file needs updating in project -->
1076 <xs:attribute name="version" type ="VersionType" use="optional"/>
1077 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1078 <xs:attribute name="src" type="xs:string" use ="optional"/>
1079 </xs:complexType>
1080
Joachim Krech637681b2016-05-13 09:03:56 +02001081 <!-- some strings are used to construct filenames (e.g. package name). Such names can contain only subset of characters
Joachim Krechc4773412016-02-18 09:17:07 +01001082 and must not contain neither spaces nor dots.
1083 -->
1084 <xs:simpleType name="RestrictedString">
1085 <xs:restriction base="xs:string">
1086 <xs:pattern value="[\-_A-Za-z0-9]+"/>
1087 </xs:restriction>
1088 </xs:simpleType>
1089 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1090 Important: version pattern shall remain the same while versions change
1091 -->
1092 <xs:simpleType name="VersionType">
1093 <xs:restriction base="xs:string">
1094 <xs:pattern value="[\.\-_A-Za-z0-9]+"/>
1095 </xs:restriction>
1096 </xs:simpleType>
1097
1098 <!-- version can contain one or more of alphanumeric characters and symbols '_' '-' '.'
1099 Allows specifing a version range: minVersion : maxVersion
1100 -->
1101 <xs:simpleType name="ConditionVersionType">
1102 <xs:restriction base="xs:string">
1103 <xs:pattern value="[\.:\-_A-Za-z0-9]+"/>
1104 </xs:restriction>
1105 </xs:simpleType>
1106
Joachim Krech637681b2016-05-13 09:03:56 +02001107 <!-- PackageType creates a unique ID for a package (added in 1.4.4) -->
1108 <xs:complexType name="PackageType">
1109 <!-- vendor of the package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001110 <xs:attribute name="vendor" type="xs:string" use="required"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001111 <!-- name of the package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001112 <xs:attribute name="name" type="xs:string" use="required"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001113 <!-- version or version range of the package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001114 <xs:attribute name="version" type="ConditionVersionType" use="required"/>
1115 </xs:complexType>
1116
Joachim Krech637681b2016-05-13 09:03:56 +02001117 <!-- Package dependency section type (added in 1.4.4) -->
1118 <xs:complexType name="PackagesType">
Joachim Krechc4773412016-02-18 09:17:07 +01001119 <xs:sequence maxOccurs="unbounded">
Joachim Krech637681b2016-05-13 09:03:56 +02001120 <xs:element name="package" type="PackageType"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001121 </xs:sequence>
1122 </xs:complexType>
1123
1124 <!-- LanguageType creates a unique language ID (added in 1.4.4) -->
1125 <xs:complexType name="LanguageType">
1126 <!-- language name e.g. C -->
1127 <xs:attribute name="name" type="xs:string" use="required"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001128 <!-- language version e.g. C99 -->
Joachim Krechc4773412016-02-18 09:17:07 +01001129 <xs:attribute name="version" type="xs:string" use="required"/>
1130 </xs:complexType>
1131
1132 <!-- Lanuage section type (added in 1.4.4) -->
1133 <xs:complexType name="LanguagesType">
1134 <xs:sequence maxOccurs="unbounded">
1135 <xs:element name="language" type="LanguageType"/>
1136 </xs:sequence>
1137 </xs:complexType>
1138
1139 <!-- CompilerType crates a unique toolchain ID, e.g. armcc 5.4.0 (added in 1.4.4) -->
1140 <xs:complexType name="CompilerType">
Joachim Krech637681b2016-05-13 09:03:56 +02001141 <xs:attribute name="name" type="CompilerEnumType" use="required"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001142 <xs:attribute name="version" type="ConditionVersionType" use="required"/>
1143 </xs:complexType>
1144
1145 <!-- Compiler section type (added in 1.4.4) -->
1146 <xs:complexType name="CompilersType">
1147 <xs:sequence maxOccurs="unbounded">
1148 <xs:element name="compiler" type="CompilerType"/>
1149 </xs:sequence>
1150 </xs:complexType>
1151
1152 <!-- Requirements Section: (added in 1.4.4) -->
1153 <xs:complexType name="RequirementsType">
1154 <xs:all>
Joachim Krech637681b2016-05-13 09:03:56 +02001155 <xs:element name="packages" type="PackagesType" minOccurs="0"/>
1156 <xs:element name="languages" type="LanguagesType" minOccurs="0"/>
1157 <xs:element name="compilers" type="CompilersType" minOccurs="0"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001158 </xs:all>
1159 </xs:complexType>
1160
1161 <!-- Project target specification: (added in 1.4.4) -->
1162 <xs:complexType name="TargetType">
1163 <xs:choice maxOccurs="unbounded">
1164 <!-- build options -->
1165 <xs:element name="output" type="OutputType"/>
1166 <!-- memory options -->
1167 <xs:element name="memory" type="TargetMemoryType" minOccurs="0" maxOccurs="unbounded"/>
1168 <!-- stack setting -->
1169 <xs:element name="stack" type="StackType" minOccurs="0" maxOccurs="1"/>
1170 <!-- heap setting -->
1171 <xs:element name="heap" type="HeapType" minOccurs="0" maxOccurs="1"/>
1172 <!-- algorithm options -->
1173 <xs:element name="algorithm" type="TargetAlgorithmType" minOccurs="0" maxOccurs="unbounded"/>
1174 <!-- debug probe selection and configuration -->
1175 <xs:element name="debugProbe" type="DebugProbeType" minOccurs="0"/>
1176 </xs:choice>
1177 <!-- Board Vendor -->
1178 <xs:attribute name="Bvendor" type="xs:string" use="optional"/>
1179 <!-- Board Name -->
1180 <xs:attribute name="Bname" type="xs:string" use="optional"/>
1181 <!-- Board Version -->
1182 <xs:attribute name="Bversion" type="xs:string" use="optional"/>
1183 <!-- Device Vendor -->
1184 <xs:attribute name="Dvendor" type="xs:string" use="optional"/>
1185 <!-- Device Name -->
1186 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1187 <!-- Processor Instance Name -->
1188 <xs:attribute name="Pname" type="xs:string" use="optional"/>
1189 <!-- FPU used in target build -->
1190 <xs:attribute name="Dfpu" type="DfpuEnum" use="optional"/>
1191 <!-- Endianess used in target build -->
1192 <xs:attribute name="Dendian" type="DendianEnum" use="optional"/>
1193 <!-- MPU used in target build -->
1194 <xs:attribute name="Dmpu" type="DmpuEnum" use="optional"/>
1195 </xs:complexType>
1196
1197 <!-- Debug probe specification: (added in 1.4.4) -->
1198 <xs:complexType name="DebugProbeType">
1199 <!-- Product Name of the debug probe-->
1200 <xs:attribute name="name" type="xs:string" use="required"/>
1201 <!-- Debug protocol selection -->
1202 <xs:attribute name="protocol" type="xs:string" use="required"/>
1203 <!-- Core clock configured by application -->
1204 <xs:attribute name="coreClock" type="NonNegativeInteger" use="required"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001205 <!-- TPIU clock configured-->
1206 <xs:attribute name="tpiuClock" type="NonNegativeInteger" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001207 </xs:complexType>
1208
1209 <!-- Build settings for the project, setting RTE filter options (added in 1.4.4) -->
1210 <xs:complexType name="OutputType">
1211 <!-- Project output file name -->
1212 <xs:attribute name="name" type="xs:string" use="required"/>
1213 <!-- Project output library or executable -->
1214 <xs:attribute name="type" type="CompilerOutputType" use="required"/>
1215 <!-- Project build for debug -->
1216 <xs:attribute name="debug" type="xs:boolean" use="required"/>
1217 </xs:complexType>
1218
1219 <!-- Memory settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1220 <xs:complexType name="TargetMemoryType">
1221 <xs:attribute name="id" type="xs:string" use="optional"/> <!-- only use with legacy DFPs -->
1222 <!-- defines the name of the memory for reference, allows to redefine memory from DFP -->
1223 <xs:attribute name="name" type="xs:string" use="required"/>
1224 <!-- (re-)defines the start address of the memory -->
1225 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1226 <!-- (re-)defines the size in bytes of the memory -->
1227 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1228 <!-- disables the memory with the name specified by DFP -->
1229 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1230 <!-- if true, this memory is used for the startup code -->
1231 <xs:attribute name="startup" type="xs:boolean" use="optional" default="0"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001232 <!-- if true, this memory is initialized with 0 -->
Joachim Krechc4773412016-02-18 09:17:07 +01001233 <xs:attribute name="init" type="xs:boolean" use="optional" default="0"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001234 <!-- overrides access permisson configured by the DFP -->
1235 <xs:attribute name="access" type="AccessType" use="optional"/>
1236 <!-- specifies whether the memory is used as default by linker -->
1237 <xs:attribute name="default" type="xs:boolean" use="optional" default="0"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001238 </xs:complexType>
1239
1240 <!-- Algorithm settings for the project, redefining defaults from DFP (added in 1.4.4) -->
1241 <xs:complexType name="TargetAlgorithmType">
1242 <!-- references the filename of the algorith, allowing to redefine attributes of algorithms in DFP -->
1243 <xs:attribute name="name" type="xs:string" use="required"/>
1244 <!-- overrides the start address programmed by named algorithm from DFP -->
1245 <xs:attribute name="start" type="NonNegativeInteger" use="optional"/>
1246 <!-- overrides the size programmed by named algorithm from DFP -->
1247 <xs:attribute name="size" type="NonNegativeInteger" use="optional"/>
1248 <!-- disables the algorithm specified as default in DFP -->
1249 <xs:attribute name="remove" type="xs:boolean" use="optional" default="0"/>
1250 <!-- overrides the RAMstart for algorithm with 'name' from DFP -->
1251 <xs:attribute name="RAMstart" type="NonNegativeInteger" use="optional"/>
1252 <!-- overrides the RAMsize for algorithm with 'name' from DFP -->
1253 <xs:attribute name="RAMsize" type="NonNegativeInteger" use="optional"/>
1254 </xs:complexType>
1255
1256 <!-- element specifying the stack (added in 1.4.4) -->
1257 <xs:complexType name="StackType">
1258 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1259 </xs:complexType>
1260
1261 <!-- element specifying the heap (added in 1.4.4) -->
1262 <xs:complexType name="HeapType">
1263 <xs:attribute name="size" type="NonNegativeInteger" use="required"/>
1264 </xs:complexType>
1265
1266 <!-- Project file type definition (added in 1.4.4) -->
1267 <xs:complexType name="ProjectFileType">
1268 <!-- path + filename + extension -->
1269 <xs:attribute name="name" type ="xs:string" use="required" />
1270 <!-- file item category: source, header, include path, etc. -->
1271 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1272 <!-- path(s) to find source files for a library, paths are delimited with semicolon (;) -->
1273 <xs:attribute name="src" type="xs:string" use ="optional"/>
1274 </xs:complexType>
1275
1276 <!-- Group section contains a list of files and (sub-)groups (added in 1.4.4) -->
1277 <xs:complexType name="GroupType">
1278 <xs:choice maxOccurs="unbounded">
1279 <xs:element name="file" type="ProjectFileType" />
1280 <xs:element name="group" type="GroupType" />
1281 </xs:choice>
1282 <xs:attribute name="name" use="required"/>
1283 </xs:complexType>
1284
1285 <!-- Files section within the project section (added in 1.4.4) -->
1286 <xs:complexType name="ProjectFilesType">
1287 <xs:choice maxOccurs="unbounded">
1288 <xs:element name="file" type="ProjectFileType" />
1289 <xs:element name="group" type="GroupType" />
1290 </xs:choice>
1291 </xs:complexType>
1292
1293 <!-- Component selection section (added in 1.4.4) -->
1294 <xs:complexType name="ComponentSelectType">
Joachim Krech637681b2016-05-13 09:03:56 +02001295 <xs:sequence>
1296 <xs:element name="component" maxOccurs="unbounded">
1297 <xs:complexType>
1298 <xs:sequence>
1299 <!-- all config files -->
1300 <xs:element name="file" minOccurs="0" maxOccurs="unbounded">
1301 <xs:complexType>
1302 <!-- condition id of the condition that evaluates to true on project creation -->
1303 <xs:attribute name="condition" type="xs:string" use="optional"/>
1304 <!-- file item category: source, header, include path, etc. -->
1305 <xs:attribute name="category" type="FileCategoryType" use ="required"/>
1306 <!-- file item action attribute : config (copy to project, template, interface) -->
1307 <xs:attribute name="attr" type="FileAttributeType" use ="optional"/>
1308 <!-- path + filename + extension -->
1309 <xs:attribute name="name" type ="xs:string" use="required" />
1310 <!-- configuration file version: to be used by RTE to see whether the file requires updating or not -->
1311 <xs:attribute name="version" type ="VersionType" use="required"/>
1312 </xs:complexType>
1313 </xs:element>
1314 </xs:sequence>
1315 <xs:attribute name="Cvendor" type="xs:string" use="required"/>
1316 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1317 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1318 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1319 <xs:attribute name="Csub" type="CsubType" use="required"/>
1320 <xs:attribute name="Cvariant" type="CvariantType" use="required"/>
1321 <xs:attribute name="Cversion" type="ConditionVersionType" use="required"/>
1322 <xs:attribute name="Capiversion" type="ConditionVersionType" use="optional"/> <!-- only used when component implements an API -->
1323 <xs:attribute name="instances" type="InstancesType" use="optional" default="1"/>
1324 </xs:complexType>
1325 </xs:element>
Joachim Krechc4773412016-02-18 09:17:07 +01001326 </xs:sequence>
1327 </xs:complexType>
1328
1329 <!-- Project section: (added in 1.4.4) -->
1330 <xs:complexType name="ProjectType">
1331 <xs:all>
1332 <!-- target selection and configuration -->
1333 <xs:element name="target" type="TargetType"/>
1334 <!-- components selected for project -->
1335 <xs:element name="select" type="ComponentSelectType"/>
1336 <!-- project files not contained in components -->
1337 <xs:element name="files" type="ProjectFilesType"/>
1338 </xs:all>
1339 <!-- if no project name is provided, the filename of the GPDSC is used -->
1340 <xs:attribute name="name" type="xs:string" use="optional"/>
1341 <!-- optional link/reference to documentation about the project -->
1342 <xs:attribute name="documentation" type="xs:string" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001343 </xs:complexType>
1344
1345 <!-- Create Section: (added in 1.4.4) -->
1346 <xs:complexType name="CreateType">
1347 <xs:sequence>
1348 <!-- project section -->
Joachim Krech637681b2016-05-13 09:03:56 +02001349 <xs:element name="project" type="ProjectType" maxOccurs="unbounded"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001350 </xs:sequence>
1351 </xs:complexType>
1352
1353 <!-- release contains version as an attribute and notes as element text -->
1354 <xs:complexType name="ReleaseType">
1355 <xs:simpleContent>
1356 <xs:extension base='xs:string'>
1357 <xs:attribute name="version" type="VersionType" use="required"/>
1358 <xs:attribute name="date" type="xs:date" use="optional"/>
1359 <xs:attribute name="deprecated" type="xs:date" use="optional"/>
1360 <xs:attribute name="replacement" type="xs:string" use="optional"/>
1361 </xs:extension>
1362 </xs:simpleContent>
1363 </xs:complexType>
1364
1365 <xs:complexType name="ReleasesType">
1366 <xs:sequence>
1367 <xs:element name="release" type="ReleaseType" minOccurs="1" maxOccurs="unbounded"/>
1368 </xs:sequence>
1369 </xs:complexType>
1370
1371 <!-- Generator file type definition -->
1372 <xs:complexType name="GeneratorFileType">
1373 <!-- conditions can be used to filter relevant files depending on e.g. device name
1374 or toolchain -->
1375 <xs:attribute name="condition" type="xs:string" use="optional"/>
1376 <!-- file item category: generator specific file type -->
1377 <xs:attribute name="category" type="xs:string" use ="required"/>
1378 <!-- path + filename + extension -->
1379 <xs:attribute name="name" type ="xs:string" use="required" />
1380 <!-- file version -->
1381 <xs:attribute name="version" type ="VersionType" use="optional"/>
1382 </xs:complexType>
1383
1384 <xs:complexType name="GeneratorDeviceSelectType">
1385 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1386 <xs:attribute name="Dname" type="xs:string" use="optional"/>
1387 <xs:attribute name="Dvariant" type="xs:string" use="optional"/>
1388 <xs:attribute name="Pname" type="RestrictedString" use="optional"/>
1389 </xs:complexType>
1390
1391 <xs:complexType name="GeneratorCommandArgumentType">
1392 <xs:simpleContent>
1393 <xs:extension base='xs:string'>
1394 <xs:attribute name="switch" type="xs:string" use="optional"/>
1395 </xs:extension>
1396 </xs:simpleContent>
1397 </xs:complexType>
1398
1399 <xs:complexType name="GeneratorCommandArgumentsType">
1400 <xs:sequence>
1401 <xs:element name="argument" type="GeneratorCommandArgumentType" minOccurs="0" maxOccurs="unbounded"/>
1402 </xs:sequence>
1403 </xs:complexType>
1404
1405 <xs:complexType name="GpdscFileType">
1406 <xs:attribute name="name" type="xs:string" use="required"/>
1407 </xs:complexType>
1408
1409 <!-- Generator Type -->
1410 <xs:complexType name="GeneratorType">
1411 <xs:all>
1412 <xs:element name="description" type="xs:string"/>
1413 <xs:element name="select" type="GeneratorDeviceSelectType" minOccurs="0"/>
1414 <xs:element name="command" type="xs:string"/>
1415 <xs:element name="workingDir" type="xs:string" minOccurs="0"/>
1416 <xs:element name="arguments" type="GeneratorCommandArgumentsType" minOccurs="0"/>
1417 <xs:element name="gpdsc" type="GpdscFileType" minOccurs="0"/>
1418 <!-- list of project files / content -->
1419 <xs:element name="project_files" minOccurs="0">
1420 <xs:complexType>
1421 <xs:sequence>
1422 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1423 </xs:sequence>
1424 </xs:complexType>
1425 </xs:element>
1426 <!-- list of tool files / content -->
1427 <xs:element name="files" minOccurs="0">
1428 <xs:complexType>
1429 <xs:sequence>
1430 <!-- tool files are under sole control of the generator -->
1431 <xs:element name="file" type="GeneratorFileType" maxOccurs="unbounded"/>
1432 </xs:sequence>
1433 </xs:complexType>
1434 </xs:element>
1435 <!-- Generator tools specific section ignored by other tools -->
1436 <xs:element name="extensions" minOccurs="0">
1437 <xs:complexType>
1438 <xs:sequence>
1439 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
1440 </xs:any>
1441 </xs:sequence>
1442 </xs:complexType>
1443 </xs:element>
1444 </xs:all>
1445 <xs:attribute name="id" type="xs:string" use ="required"/>
1446 <xs:attribute name="Gvendor" type="xs:string" use ="optional"/>
1447 <xs:attribute name="Gtool" type="xs:string" use ="optional"/>
1448 <xs:attribute name="Gversion" type="xs:string" use ="optional"/>
1449 </xs:complexType>
1450
1451 <!-- Generators Section -->
1452 <xs:complexType name="GeneratorsType">
1453 <xs:sequence>
1454 <xs:element name="generator" type="GeneratorType" minOccurs="1" maxOccurs="unbounded"/>
1455 </xs:sequence>
1456 </xs:complexType>
1457
1458 <!-- package description root point -->
1459 <xs:element name="package" nillable="true">
1460 <xs:complexType>
1461 <xs:all>
Joachim Krech637681b2016-05-13 09:03:56 +02001462 <!-- name of the package (Device Support=DFP, Board Support=BSP) -->
Joachim Krechc4773412016-02-18 09:17:07 +01001463 <xs:element name="name" type="RestrictedString" minOccurs="1"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001464 <!-- company name of the developer/maintainer of this package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001465 <xs:element name="vendor" type="RestrictedString" minOccurs="1"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001466 <!-- brief description of the content and purpose of the package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001467 <xs:element name="description" type="xs:string" minOccurs="1"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001468 <!-- download location of this PDSC and corresponding package file -->
Joachim Krechc4773412016-02-18 09:17:07 +01001469 <xs:element name="url" type="xs:anyURI" minOccurs="1"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001470 <!-- e.g. mailto:Support@<vendor>.com or www.<vendor>.com/supportRequest -->
Joachim Krechc4773412016-02-18 09:17:07 +01001471 <xs:element name="supportContact" type="xs:string" minOccurs="0"/>
1472 <!-- optional: click through license file name and relative path -->
1473 <xs:element name="license" type="xs:string" minOccurs="0"/>
1474 <!-- optional: section listing requirements (1.4.2) -->
1475 <xs:element name="requirements" type="RequirementsType" minOccurs="0"/>
1476 <!-- optional: section used for tool independant project creation (one shot) -->
1477 <xs:element name="create" type="CreateType" minOccurs="0"/>
1478 <!-- Version numbers and release history -->
1479 <xs:element name="releases" type="ReleasesType" minOccurs="1"/>
1480 <!-- keyword for Search Engine Indexing (e.g. Google) -->
1481 <xs:element name="keywords" type="KeywordsType" minOccurs="0"/>
1482 <!-- generators are tools and utilities that are used to generate software components -->
1483 <xs:element name="generators" type="GeneratorsType" minOccurs="0"/>
Joachim Krech637681b2016-05-13 09:03:56 +02001484 <!-- definition of devices including references to device support files contained in package -->
Joachim Krechc4773412016-02-18 09:17:07 +01001485 <xs:element name="devices" minOccurs="0">
1486 <xs:complexType>
1487 <!-- top level -->
1488 <xs:sequence>
1489 <!-- Family Level begin -->
1490 <xs:element name="family" maxOccurs="unbounded">
1491 <xs:complexType>
1492 <xs:sequence>
1493 <xs:group ref="DevicePropertiesGroup"/>
1494 <xs:element name="device" type="DeviceType" minOccurs="0" maxOccurs="unbounded"/>
1495 <!-- Sub Family Level begin-->
1496 <xs:element name="subFamily" minOccurs="0" maxOccurs="unbounded">
1497 <xs:complexType>
1498 <xs:sequence>
1499 <xs:group ref="DevicePropertiesGroup"/>
1500 <!-- Device Level begin-->
1501 <xs:element name="device" type="DeviceType" maxOccurs="unbounded"/>
1502 <!-- Device Level end -->
1503 </xs:sequence>
1504 <xs:attribute name="DsubFamily" type="xs:string" use="required"/>
1505 </xs:complexType>
1506 </xs:element>
1507 <!-- Sub Family Level end -->
1508 </xs:sequence>
1509 <xs:attribute name="Dfamily" type="xs:string" use="required"/>
1510 <xs:attribute name="Dvendor" type="DeviceVendorEnum" use="required"/>
1511 </xs:complexType>
1512 </xs:element>
1513 <!-- Family Level end -->
1514 </xs:sequence>
1515 </xs:complexType>
1516 </xs:element>
1517 <!-- devices end -->
1518 <!-- definition of boards. Can be referenced by examples -->
1519 <xs:element name="boards" type="BoardsType" minOccurs="0"/>
1520 <!-- boards end -->
1521 <!-- taxonomy section contains default descriptions used in the entire model -->
1522 <xs:element name="taxonomy" type="TaxonomyType" minOccurs="0"/>
1523 <!-- apis section contains api descriptions used in the entire model -->
1524 <xs:element name="apis" type="ApisType" minOccurs="0"/>
1525 <!-- conditions section contains all condition entries used by any component of the package -->
1526 <xs:element name="conditions" type="ConditionsType" minOccurs="0"/>
1527 <!-- examples section defining examples available within a package -->
1528 <xs:element name="examples" type="ExamplesType" minOccurs="0"/>
1529 <!-- software component definition -->
1530 <xs:element name="components" minOccurs="0">
1531 <xs:complexType>
1532 <xs:choice minOccurs="1" maxOccurs="unbounded">
1533 <!-- COMPONENT Description Root Point: -->
1534 <xs:element name="bundle" minOccurs="1" maxOccurs="unbounded">
1535 <xs:complexType>
1536 <xs:sequence>
1537 <xs:element name="description" type="xs:string"/>
1538 <xs:element name="doc" type="xs:string"/>
1539 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1540 <xs:complexType>
1541 <xs:sequence>
1542 <!-- a component can be deprecated if it is no longer maintained-->
1543 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1544 <!-- short component description displayed -->
1545 <xs:element name="description" type="xs:string"/>
1546 <!-- content to be added to generated RTE_Component.h file -->
1547 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1548 <!-- list of files / content -->
1549 <xs:element name="files">
1550 <xs:complexType>
1551 <xs:sequence>
1552 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1553 </xs:sequence>
1554 </xs:complexType>
1555 </xs:element>
1556 </xs:sequence>
1557 <!-- component identity attributes Cclass Cvendor and Cversion are specified by bundle -->
1558 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1559 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1560 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1561 <!-- api version for this component -->
1562 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
1563 <!-- component attribute for referencing a condition specified in conditions section above -->
1564 <xs:attribute name="condition" type="xs:string" use="optional"/>
1565 <!-- maximum allowed number of instances of a component in a project, default - 1-->
Joachim Krech637681b2016-05-13 09:03:56 +02001566 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001567 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1568 <xs:attribute name="generator" type="xs:string" use="optional"/>
1569 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1570 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1571 </xs:complexType>
1572 </xs:element>
1573 </xs:sequence>
1574 <!-- bundle attributes -->
1575 <xs:attribute name="Cbundle" type="xs:string" use="required"/>
1576 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1577 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1578 <xs:attribute name="Cversion" type="VersionType" use="required"/>
1579 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1580 <xs:attribute name="generator" type="xs:string" use="optional"/>
1581 <!-- identifies this bundle variant to be the preferred variant [Version 1.4.0] -->
1582 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1583 </xs:complexType>
1584 </xs:element>
1585 <xs:element name="component" minOccurs="1" maxOccurs="unbounded">
1586 <xs:complexType>
1587 <xs:sequence>
1588 <!-- a component can be deprecated if it is no longer maintained-->
1589 <xs:element name="deprecated" type="xs:boolean" minOccurs="0" default="false"/>
1590 <!-- short component description displayed -->
1591 <xs:element name="description" type="xs:string"/>
1592 <!-- content to be added to generated RTE_Component.h file -->
1593 <xs:element name="RTE_Components_h" type="xs:string" minOccurs="0"/>
1594 <!-- list of files / content -->
1595 <xs:element name="files">
1596 <xs:complexType>
1597 <xs:sequence>
1598 <xs:element name="file" type="FileType" maxOccurs="unbounded"/>
1599 </xs:sequence>
1600 </xs:complexType>
1601 </xs:element>
1602 </xs:sequence>
1603 <!-- component identity attributes -->
1604 <xs:attribute name="Cvendor" type="xs:string" use="optional"/>
1605 <xs:attribute name="Cclass" type="CclassType" use="required"/>
1606 <xs:attribute name="Cgroup" type="CgroupType" use="required"/>
1607 <xs:attribute name="Csub" type="CsubType" use="optional"/>
1608 <xs:attribute name="Cvariant" type="CvariantType" use="optional"/>
1609 <xs:attribute name="Cversion" type="VersionType" use="required"/>
1610 <!-- api version for this component -->
1611 <xs:attribute name="Capiversion" type="VersionType" use="optional"/>
1612 <!-- component attribute for referencing a condition specified in conditions section above -->
1613 <xs:attribute name="condition" type="xs:string" use="optional"/>
1614 <!-- maximum allowed number of instances of a component in a project, default - 1-->
Joachim Krech637681b2016-05-13 09:03:56 +02001615 <xs:attribute name="maxInstances" type="InstancesType" use="optional"/>
Joachim Krechc4773412016-02-18 09:17:07 +01001616 <!-- association of component with a generator. If the component is selected the generator information becomes active -->
1617 <xs:attribute name="generator" type="xs:string" use="optional"/>
1618 <!-- identifies this component variant to be the preferred variant [Version 1.4.0] -->
1619 <xs:attribute name="isDefaultVariant" type="xs:boolean" use="optional"/>
1620 </xs:complexType>
1621 </xs:element>
1622 </xs:choice>
1623 <xs:attribute name="generator" type="xs:string" use="optional"/>
1624 </xs:complexType>
1625 </xs:element>
1626 </xs:all>
1627 <xs:attribute name="schemaVersion" type="VersionType" use="required"/>
1628 </xs:complexType>
1629 </xs:element>
1630</xs:schema>