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