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