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