A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

524 lines
29 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. date: 04.07.2012
  4. Copyright (C) 2011 - 2012 ARM Limited. All rights reserved.
  5. Redistribution and use in source and binary forms, with or without
  6. modification, are permitted provided that the following conditions are met:
  7. - Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. - Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. - Neither the name of ARM nor the names of its contributors may be used
  13. to endorse or promote products derived from this software without
  14. specific prior written permission.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  18. ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
  19. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  20. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  21. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  22. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  23. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  24. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  25. POSSIBILITY OF SUCH DAMAGE.
  26. This is CMSIS-SVD version 1.1
  27. For backward compatibility all additional tags have been made optional.
  28. Extensions may be mandatory for successful device header file generation
  29. Other changes are related to some restructuring of the schema.
  30. Note that the memory section has been removed since this would limit the
  31. reuse of descriptions for a series of devices.
  32. -->
  33. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" version="1.1">
  34. <!-- stringType requires a none empty string of a least one character length -->
  35. <xs:simpleType name="stringType">
  36. <xs:restriction base="xs:string">
  37. <xs:minLength value="1"/>
  38. </xs:restriction>
  39. </xs:simpleType>
  40. <!-- cpuType specifies a selection of Cortex-M and Secure-Cores. This list will get extended as new processors are released -->
  41. <xs:simpleType name="cpuNameType">
  42. <xs:restriction base="xs:token">
  43. <xs:enumeration value="CM0"/>
  44. <xs:enumeration value="CM0PLUS"/>
  45. <xs:enumeration value="CM0+"/>
  46. <xs:enumeration value="SC000"/>
  47. <xs:enumeration value="CM3"/>
  48. <xs:enumeration value="SC300"/>
  49. <xs:enumeration value="CM4"/>
  50. <xs:enumeration value="other"/>
  51. </xs:restriction>
  52. </xs:simpleType>
  53. <!-- revisionType specifies the CPU revision format as defined by ARM (rNpM) -->
  54. <xs:simpleType name="revisionType">
  55. <xs:restriction base="xs:string">
  56. <xs:pattern value="r[0-9]p[0-9]"/>
  57. </xs:restriction>
  58. </xs:simpleType>
  59. <!-- EndianType pre-defines the tokens for specifying the endianess of the device -->
  60. <xs:simpleType name="endianType">
  61. <xs:restriction base="xs:token">
  62. <xs:enumeration value="little"/>
  63. <xs:enumeration value="big"/>
  64. <xs:enumeration value="selectable"/>
  65. <xs:enumeration value="other"/>
  66. </xs:restriction>
  67. </xs:simpleType>
  68. <!-- dataType pre-defines the tokens in line with CMSIS data type definitions -->
  69. <xs:simpleType name="dataTypeType">
  70. <xs:restriction base="xs:token">
  71. <xs:enumeration value="uint8_t"/>
  72. <xs:enumeration value="uint16_t"/>
  73. <xs:enumeration value="uint32_t"/>
  74. <xs:enumeration value="uint64_t"/>
  75. <xs:enumeration value="int8_t"/>
  76. <xs:enumeration value="int16_t"/>
  77. <xs:enumeration value="int32_t"/>
  78. <xs:enumeration value="int64_t"/>
  79. <xs:enumeration value="uint8_t *"/>
  80. <xs:enumeration value="uint16_t *"/>
  81. <xs:enumeration value="uint32_t *"/>
  82. <xs:enumeration value="uint64_t *"/>
  83. <xs:enumeration value="int8_t *"/>
  84. <xs:enumeration value="int16_t *"/>
  85. <xs:enumeration value="int32_t *"/>
  86. <xs:enumeration value="int64_t *"/>
  87. </xs:restriction>
  88. </xs:simpleType>
  89. <!-- nvicPrioBitsType specifies the integer value range for the number of bits used in NVIC to encode priority levels -->
  90. <xs:simpleType name="nvicPrioBitsType">
  91. <xs:restriction base="xs:integer">
  92. <xs:minInclusive value="2"/>
  93. <xs:maxInclusive value="8"/>
  94. </xs:restriction>
  95. </xs:simpleType>
  96. <!-- identifierType specifies the subset and sequence of characters used for specifying identifiers within the description. -->
  97. <!-- this is particularly important as these are used in ANSI C Structures during the device header file generation -->
  98. <xs:simpleType name="identifierType">
  99. <xs:restriction base="xs:string">
  100. <xs:pattern value="((%s)[_A-Za-z]{1}[_A-Za-z0-9]*)|([_A-Za-z]{1}[_A-Za-z0-9]*(\[%s\])?)|([_A-Za-z]{1}[_A-Za-z0-9]*(%s)?[_A-Za-z0-9]*)"/>
  101. </xs:restriction>
  102. </xs:simpleType>
  103. <!-- enumerationNameType specifies the subset and sequence of characters used for specifying names of enumeratedValues. -->
  104. <!-- this is particularly important as these are used in ANSI C Structures during the device header file generation -->
  105. <xs:simpleType name="enumerationNameType">
  106. <xs:restriction base="xs:string">
  107. <xs:pattern value="[_A-Za-z0-9]*"/>
  108. </xs:restriction>
  109. </xs:simpleType>
  110. <!-- dimIndexType specifies the subset and sequence of characters used for specifying the sequence of indices in register arrays -->
  111. <xs:simpleType name="dimIndexType">
  112. <xs:restriction base="xs:string">
  113. <xs:pattern value="[0-9]+\-[0-9]+|[A-Z]-[A-Z]|[_0-9a-zA-Z]+(,\s*[_0-9a-zA-Z]+)+"/>
  114. </xs:restriction>
  115. </xs:simpleType>
  116. <!-- scaledNonNegativeInteger specifies the format in which numbers are represented in hexadecimal or decimar format -->
  117. <xs:simpleType name="scaledNonNegativeInteger">
  118. <xs:restriction base="xs:string">
  119. <xs:pattern value="[+]?(0x|0X|#)?[0-9a-fA-F]+[kmgtKMGT]?"/>
  120. </xs:restriction>
  121. </xs:simpleType>
  122. <!-- enumeratedValueDataType specifies the number formats for the values in enumeratedValues -->
  123. <xs:simpleType name="enumeratedValueDataType">
  124. <xs:restriction base="xs:string">
  125. <xs:pattern value="[+]?(0x|0X|#)?[0-9a-fxA-FX]+"/>
  126. </xs:restriction>
  127. </xs:simpleType>
  128. <!-- accessType specfies the pre-defined tokens for the available accesses -->
  129. <xs:simpleType name="accessType">
  130. <xs:restriction base="xs:token">
  131. <xs:enumeration value="read-only"/>
  132. <xs:enumeration value="write-only"/>
  133. <xs:enumeration value="read-write"/>
  134. <xs:enumeration value="writeOnce"/>
  135. <xs:enumeration value="read-writeOnce"/>
  136. </xs:restriction>
  137. </xs:simpleType>
  138. <!-- modifiedWriteValuesType specifies the pre-defined tokens for the write side effects -->
  139. <xs:simpleType name="modifiedWriteValuesType">
  140. <xs:restriction base="xs:token">
  141. <xs:enumeration value="oneToClear"/>
  142. <xs:enumeration value="oneToSet"/>
  143. <xs:enumeration value="oneToToggle"/>
  144. <xs:enumeration value="zeroToClear"/>
  145. <xs:enumeration value="zeroToSet"/>
  146. <xs:enumeration value="zeroToToggle"/>
  147. <xs:enumeration value="clear"/>
  148. <xs:enumeration value="set"/>
  149. <xs:enumeration value="modify"/>
  150. </xs:restriction>
  151. </xs:simpleType>
  152. <!-- readAction type specifies the pre-defined tokens for read side effects -->
  153. <xs:simpleType name="readActionType">
  154. <xs:restriction base="xs:token">
  155. <xs:enumeration value="clear"/>
  156. <xs:enumeration value="set"/>
  157. <xs:enumeration value="modify"/>
  158. <xs:enumeration value="modifyExternal"/>
  159. </xs:restriction>
  160. </xs:simpleType>
  161. <!-- enumUsageType specifies the pre-defined tokens for selecting what access types an enumeratedValues set is associated with -->
  162. <xs:simpleType name="enumUsageType">
  163. <xs:restriction base="xs:token">
  164. <xs:enumeration value="read"/>
  165. <xs:enumeration value="write"/>
  166. <xs:enumeration value="read-write"/>
  167. </xs:restriction>
  168. </xs:simpleType>
  169. <!-- bitRangeType specifies the bit numbers to be restricted values from 0 - 69 -->
  170. <xs:simpleType name="bitRangeType">
  171. <xs:restriction base="xs:token">
  172. <xs:pattern value="\[([0-4])?[0-9]:([0-4])?[0-9]\]"/>
  173. </xs:restriction>
  174. </xs:simpleType>
  175. <!-- writeContraintType specifies how to describe the restriction of the allowed values that can be written to a resource -->
  176. <xs:complexType name="writeConstraintType">
  177. <xs:choice>
  178. <xs:element name="writeAsRead" type="xs:boolean"/>
  179. <xs:element name="useEnumeratedValues" type="xs:boolean"/>
  180. <xs:element name="range">
  181. <xs:complexType>
  182. <xs:sequence>
  183. <xs:element name="minimum" type="scaledNonNegativeInteger"/>
  184. <xs:element name="maximum" type="scaledNonNegativeInteger"/>
  185. </xs:sequence>
  186. </xs:complexType>
  187. </xs:element>
  188. </xs:choice>
  189. </xs:complexType>
  190. <!-- addressBlockType specifies the elements to describe an address block -->
  191. <xs:complexType name="addressBlockType">
  192. <xs:sequence>
  193. <xs:element name="offset" type="scaledNonNegativeInteger"/>
  194. <xs:element name="size" type="scaledNonNegativeInteger"/>
  195. <xs:element name="usage">
  196. <xs:simpleType>
  197. <xs:restriction base="xs:token">
  198. <xs:enumeration value="registers"/>
  199. <xs:enumeration value="buffer"/>
  200. <xs:enumeration value="reserved"/>
  201. </xs:restriction>
  202. </xs:simpleType>
  203. </xs:element>
  204. </xs:sequence>
  205. </xs:complexType>
  206. <!-- interruptType specifies how to describe an interrupt associated with a peripheral -->
  207. <xs:complexType name="interruptType">
  208. <xs:sequence>
  209. <xs:element name="name" type="stringType"/>
  210. <xs:element name="description" type="xs:string" minOccurs="0"/>
  211. <xs:element name="value" type="xs:integer"/>
  212. </xs:sequence>
  213. </xs:complexType>
  214. <!-- register properties group specifies register size, access permission and reset value
  215. this is used in multiple locations. Settings are inherited downstream. -->
  216. <xs:group name="registerPropertiesGroup">
  217. <xs:sequence>
  218. <xs:element name="size" type="scaledNonNegativeInteger" minOccurs="0"/>
  219. <xs:element name="access" type="accessType" minOccurs="0"/>
  220. <xs:element name="resetValue" type="scaledNonNegativeInteger" minOccurs="0"/>
  221. <xs:element name="resetMask" type="scaledNonNegativeInteger" minOccurs="0"/>
  222. </xs:sequence>
  223. </xs:group>
  224. <!-- bitRangeLsbMsbStyle specifies the bit position of a field within a register
  225. by specifying the least significant and the most significant bit position -->
  226. <xs:group name="bitRangeLsbMsbStyle">
  227. <xs:sequence>
  228. <xs:element name="lsb" type="scaledNonNegativeInteger"/>
  229. <xs:element name="msb" type="scaledNonNegativeInteger"/>
  230. </xs:sequence>
  231. </xs:group>
  232. <!-- bitRangeOffsetWidthStyle specifies the bit position of a field within a register
  233. by specifying the least significant bit position and the bitWidth of the field -->
  234. <xs:group name="bitRangeOffsetWidthStyle">
  235. <xs:sequence>
  236. <xs:element name="bitOffset" type="scaledNonNegativeInteger"/>
  237. <xs:element name="bitWidth" type="scaledNonNegativeInteger" minOccurs="0"/>
  238. </xs:sequence>
  239. </xs:group>
  240. <!-- dimElementGroup specifies the number of array elements (dim), the address offset
  241. between to consecutive array elements and an a comma seperated list of strings
  242. being used for identifying each element in the array -->
  243. <xs:group name="dimElementGroup">
  244. <xs:sequence>
  245. <xs:element name="dim" type="scaledNonNegativeInteger"/>
  246. <xs:element name="dimIncrement" type="scaledNonNegativeInteger"/>
  247. <xs:element name="dimIndex" type="dimIndexType" minOccurs="0"/>
  248. </xs:sequence>
  249. </xs:group>
  250. <xs:complexType name="cpuType">
  251. <xs:sequence>
  252. <!-- V1.1: ARM processor name: Cortex-Mx / SCxxx -->
  253. <xs:element name="name" type="cpuNameType"/>
  254. <!-- V1.1: ARM defined revision of the cpu -->
  255. <xs:element name="revision" type="revisionType"/>
  256. <!-- V1.1: Endian specifies the endianess of the processor/device -->
  257. <xs:element name="endian" type="endianType"/>
  258. <!-- V1.1: mpuPresent specifies whether or not a memory protection unit is physically present -->
  259. <xs:element name="mpuPresent" type="xs:boolean"/>
  260. <!-- V1.1: fpuPresent specifies whether or not a floating point hardware unit is physically present -->
  261. <xs:element name="fpuPresent" type="xs:boolean"/>
  262. <!-- V1.1: vtorPresent is used for Cortex-M0+ based devices only. It indicates whether the Vector Table Offset
  263. Register is implemented in the device or not -->
  264. <xs:element name="vtorPresent" type="xs:boolean" minOccurs="0"/>
  265. <!-- V1.1: nvicPrioBits specifies the number of bits used by the Nested Vectored Interrupt Controller
  266. for defining the priority level = # priority levels -->
  267. <xs:element name="nvicPrioBits" type="scaledNonNegativeInteger"/>
  268. <!-- V1.1: vendorSystickConfig is set true if a custom system timer is implemented in the device
  269. instead of the ARM specified SysTickTimer -->
  270. <xs:element name="vendorSystickConfig" type="xs:boolean"/>
  271. </xs:sequence>
  272. </xs:complexType>
  273. <xs:complexType name="enumeratedValuesType">
  274. <xs:sequence>
  275. <!-- name specfies a reference to this enumeratedValues section for reuse purposes
  276. this name does not appear in the System Viewer nor the Header File. -->
  277. <xs:element name="name" type="enumerationNameType" minOccurs="0"/>
  278. <!-- usage specifies whether this enumeration is to be used for read or write or
  279. (read and write) accesses -->
  280. <xs:element name="usage" type="enumUsageType" minOccurs="0"/>
  281. <!-- enumeratedValue derivedFrom=<identifierType> -->
  282. <xs:element name="enumeratedValue" minOccurs="1" maxOccurs="unbounded">
  283. <xs:complexType>
  284. <xs:sequence>
  285. <!-- name is a ANSI C indentifier representing the value (C Enumeration) -->
  286. <xs:element name="name" type="enumerationNameType"/>
  287. <!-- description contains the details about the semantics/behavior specified by this value -->
  288. <xs:element name="description" type="stringType" minOccurs="0"/>
  289. <xs:choice>
  290. <xs:element name="value" type="enumeratedValueDataType"/>
  291. <!-- isDefault specifies the name and description for all values that are not
  292. specifically described individually -->
  293. <xs:element name="isDefault" type="xs:boolean"/>
  294. </xs:choice>
  295. </xs:sequence>
  296. </xs:complexType>
  297. </xs:element>
  298. </xs:sequence>
  299. <xs:attribute name="derivedFrom" type="enumerationNameType" use="optional"/>
  300. </xs:complexType>
  301. <xs:complexType name="fieldType">
  302. <xs:sequence>
  303. <!-- name specifies a field's name. The System Viewer and the device header file will
  304. use the name of the field as identifier -->
  305. <xs:element name="name" type="identifierType"/>
  306. <!-- description contains reference manual level information about the function and
  307. options of a field -->
  308. <xs:element name="description" type="stringType" minOccurs="0"/>
  309. <!-- alternative specifications of the bit position of the field within the register -->
  310. <xs:choice minOccurs="1" maxOccurs="1">
  311. <!-- bit field described by lsb followed by msb tag -->
  312. <xs:group ref="bitRangeLsbMsbStyle"/>
  313. <!-- bit field described by bit offset relative to Bit0 + bit width of field -->
  314. <xs:group ref="bitRangeOffsetWidthStyle"/>
  315. <!-- bit field described by [<msb>:<lsb>] -->
  316. <xs:element name="bitRange" type="bitRangeType"/>
  317. </xs:choice>
  318. <!-- access describes the predefined permissions for the field. -->
  319. <xs:element name="access" type="accessType" minOccurs="0"/>
  320. <!-- predefined description of write side effects -->
  321. <xs:element name="modifiedWriteValues" type="modifiedWriteValuesType" minOccurs="0"/>
  322. <!-- writeContstraint specifies the subrange of allowed values -->
  323. <xs:element name="writeConstraint" type="writeConstraintType" minOccurs="0"/>
  324. <!-- readAction specifies the read side effects. -->
  325. <xs:element name="readAction" type="readActionType" minOccurs="0"/>
  326. <!-- enumeratedValues derivedFrom=<identifierType> -->
  327. <xs:element name="enumeratedValues" type="enumeratedValuesType" minOccurs="0" maxOccurs="2">
  328. </xs:element>
  329. </xs:sequence>
  330. <xs:attribute name="derivedFrom" type="identifierType" use="optional"/>
  331. </xs:complexType>
  332. <xs:complexType name="fieldsType">
  333. <xs:sequence>
  334. <!-- field derivedFrom=<identifierType> -->
  335. <xs:element name="field" type="fieldType" minOccurs="1" maxOccurs="unbounded"/>
  336. </xs:sequence>
  337. </xs:complexType>
  338. <xs:complexType name="registerType">
  339. <xs:sequence>
  340. <xs:group ref="dimElementGroup" minOccurs="0"/>
  341. <!-- name specifies the name of the register. The register name is used by System Viewer and
  342. device header file generator to represent a register -->
  343. <xs:element name="name" type="identifierType"/>
  344. <!-- display name specifies a register name without the restritions of an ANSIS C identifier.
  345. The use of this tag is discouraged because it does not allow consistency between
  346. the System View and the device header file. -->
  347. <xs:element name="displayName" type="stringType" minOccurs="0"/>
  348. <!-- description contains a reference manual level description about the register and it's purpose -->
  349. <xs:element name="description" type="stringType" minOccurs="0"/>
  350. <xs:choice>
  351. <!-- alternateGroup specifies the identifier of the subgroup a register belongs to.
  352. This is useful if a register has a different description per mode but a single name -->
  353. <xs:element name="alternateGroup" type="identifierType" minOccurs="0"/>
  354. <!-- V1.1: alternateRegister specifies an alternate register description for an address that is
  355. already fully described. In this case the register name must be unique within the peripheral -->
  356. <xs:element name="alternateRegister" type="identifierType" minOccurs="0"/>
  357. </xs:choice>
  358. <!-- addressOffset describes the address of the register relative to the baseOffset of the peripheral -->
  359. <xs:element name="addressOffset" type="scaledNonNegativeInteger"/>
  360. <!-- registerPropertiesGroup elements specify the default values for register size, access permission and
  361. reset value. These default values are inherited to all fields contained in this register -->
  362. <xs:group ref="registerPropertiesGroup" minOccurs="0"/>
  363. <!-- V1.1: dataType specifies a CMSIS compliant native dataType for a register (i.e. signed, unsigned, pointer) -->
  364. <xs:element name="dataType" type="dataTypeType" minOccurs="0"/>
  365. <!-- modifiedWriteValues specifies the write side effects -->
  366. <xs:element name="modifiedWriteValues" type="modifiedWriteValuesType" minOccurs="0"/>
  367. <!-- writeConstraint specifies the subset of allowed write values -->
  368. <xs:element name="writeConstraint" type="writeConstraintType" minOccurs="0"/>
  369. <!-- readAcction specifies the read side effects -->
  370. <xs:element name="readAction" type="readActionType" minOccurs="0"/>
  371. <!-- fields section contains all fields that belong to this register -->
  372. <xs:element name="fields" type="fieldsType" minOccurs="0" maxOccurs="1"/>
  373. </xs:sequence>
  374. <xs:attribute name="derivedFrom" type="identifierType" use="optional"/>
  375. </xs:complexType>
  376. <!-- V1.1: A cluster is a set of registers that are composed into a C data structure in the device header file -->
  377. <xs:complexType name="clusterType">
  378. <xs:sequence>
  379. <xs:group ref="dimElementGroup" minOccurs="0"/>
  380. <xs:element name="name" type="identifierType"/>
  381. <xs:element name="description" type="xs:string"/>
  382. <!-- V1.1: alternateCluster specifies an alternative description for a cluster address range that is
  383. already fully described. In this case the cluster name must be unique within the peripheral -->
  384. <xs:element name="alternateCluster" type="identifierType" minOccurs="0"/>
  385. <!-- V1.1: headerStructName specifies the name for the cluster structure typedef
  386. used in the device header generation instead of the cluster name -->
  387. <xs:element name="headerStructName" type="identifierType" minOccurs="0"/>
  388. <xs:element name="addressOffset" type="scaledNonNegativeInteger"/>
  389. <xs:element name="register" type="registerType" minOccurs="1" maxOccurs="unbounded"/>
  390. </xs:sequence>
  391. <xs:attribute name="derivedFrom" type="identifierType" use="optional"/>
  392. </xs:complexType>
  393. <!-- the registers section can have an arbitrary list of cluster and register sections -->
  394. <xs:complexType name="registersType">
  395. <xs:choice minOccurs="1" maxOccurs="unbounded">
  396. <xs:element name="cluster" type="clusterType"/>
  397. <xs:element name="register" type="registerType"/>
  398. </xs:choice>
  399. </xs:complexType>
  400. <xs:complexType name="peripheralType">
  401. <xs:sequence>
  402. <!-- name specifies the name of a peripheral. This name is used for the System View and device header file -->
  403. <xs:element name="name" type="xs:Name"/>
  404. <!-- version specifies the version of the peripheral descriptions -->
  405. <xs:element name="version" type="stringType" minOccurs="0"/>
  406. <!-- description provides a high level functional description of the peripheral -->
  407. <xs:element name="description" type="stringType" minOccurs="0"/>
  408. <!-- V1.1: alternatePeripheral specifies an alternative description for an address range that is
  409. already fully by a peripheral described. In this case the peripheral name must be unique within the device description -->
  410. <xs:element name="alternatePeripheral" type="identifierType" minOccurs="0"/>
  411. <!-- groupName assigns this peripheral to a group of peripherals. This is only used bye the System View -->
  412. <xs:element name="groupName" type="xs:Name" minOccurs="0"/>
  413. <!-- prependToName specifies a prefix that is placed in front of each register name of this peripheral.
  414. The device header file will show the registers in a C-Struct of the peripheral without the prefix. -->
  415. <xs:element name="prependToName" type="identifierType" minOccurs="0"/>
  416. <!-- appendToName is a postfix that is appended to each register name of this peripheral. The device header
  417. file will sho the registers in a C-Struct of the peripheral without the postfix -->
  418. <xs:element name="appendToName" type="identifierType" minOccurs="0"/>
  419. <!-- V1.1: headerStructName specifies the name for the peripheral structure typedef
  420. used in the device header generation instead of the peripheral name -->
  421. <xs:element name="headerStructName" type="identifierType" minOccurs="0"/>
  422. <!-- disableCondition contains a logical expression based on constants and register or bit-field values
  423. if the condition is evaluated to true, the peripheral display will be disabled -->
  424. <xs:element name="disableCondition" type="stringType" minOccurs="0"/>
  425. <!-- baseAddress specifies the absolute base address of a peripheral. For derived peripherals it is mandatory
  426. to specify a baseAddress. -->
  427. <xs:element name="baseAddress" type="scaledNonNegativeInteger"/>
  428. <!-- registerPropertiesGroup elements specify the default values for register size, access permission and
  429. reset value. These default values are inherited to all registers contained in this peripheral -->
  430. <xs:group ref="registerPropertiesGroup" minOccurs="0"/>
  431. <!-- addressBlock specifies one or more address ranges that are assigned exclusively to this peripheral.
  432. derived peripherals may have no addressBlock, however none-derived peripherals are required to specify
  433. at least one address block -->
  434. <xs:element name="addressBlock" type="addressBlockType" minOccurs="0" maxOccurs="unbounded"/>
  435. <!-- interrupt specifies can specify one or more interrtupts by name, description and value -->
  436. <xs:element name="interrupt" type="interruptType" minOccurs="0" maxOccurs="unbounded"/>
  437. <!-- registers section contains all registers owned by the peripheral. In case a peripheral gets derived it does
  438. not have its own registers section, hence this section is optional. A unique peripheral without a
  439. registers section is not allowed -->
  440. <xs:element name="registers" type="registersType" minOccurs="0" maxOccurs="1">
  441. </xs:element>
  442. </xs:sequence>
  443. <xs:attribute name="derivedFrom" type="identifierType" use="optional"/>
  444. </xs:complexType>
  445. <!-- ==================================================== -->
  446. <!-- The top level element of a description is the device -->
  447. <!-- ==================================================== -->
  448. <xs:element name="device" nillable="true">
  449. <xs:complexType>
  450. <xs:sequence>
  451. <!-- V1.1: Vendor Name -->
  452. <xs:element name="vendor" type="stringType" minOccurs="0"/>
  453. <!-- V1.1: Vendor ID - a short name for referring to the vendor (e.g. Texas Instruments = TI) -->
  454. <xs:element name="vendorID" type="identifierType" minOccurs="0"/>
  455. <!-- name specifies the device name being described -->
  456. <xs:element name="name" type="identifierType"/>
  457. <!-- V1.1: series specifies the device series or family name -->
  458. <xs:element name="series" type="stringType" minOccurs="0"/>
  459. <!-- version specifies the version of the device description -->
  460. <xs:element name="version" type="stringType"/>
  461. <!-- description is a string describing the device features (e.g. memory size, peripherals, etc.) -->
  462. <xs:element name="description" type="stringType"/>
  463. <!-- V1.1: licenseText specifies the file header section to be included in any derived file -->
  464. <xs:element name="licenseText" type="stringType" minOccurs="0"/>
  465. <!-- V1.1: cpu specifies the details of the processor included in the device -->
  466. <xs:element name="cpu" type="cpuType" minOccurs="0"/>
  467. <!-- V1.1: the tag specifies the filename without extension of the CMSIS System Device include file.
  468. This tag is used by the header file generator for customizing the include statement referencing the
  469. CMSIS system file within the CMSIS device header file. By default the filename is "system_<device.name>"
  470. In cases a device series shares a single system header file, the name of the series shall be used
  471. instead of the individual device name. -->
  472. <xs:element name="headerSystemFilename" type="identifierType" minOccurs="0"/>
  473. <!-- V1.1: headerDefinitionPrefix specifies the string being prepended to all names of types defined in
  474. generated device header file -->
  475. <xs:element name="headerDefinitionsPrefix" type="identifierType" minOccurs="0"/>
  476. <!-- addressUnitBits specifies the size of the minimal addressable unit in bits -->
  477. <xs:element name="addressUnitBits" type="scaledNonNegativeInteger"/>
  478. <!-- width specifies the number of bits for the maximum single transfer size allowed by the bus interface.
  479. This sets the maximum size of a single register that can be defined for an address space -->
  480. <xs:element name="width" type="scaledNonNegativeInteger"/>
  481. <!-- registerPropertiesGroup elements specify the default values for register size, access permission and
  482. reset value -->
  483. <xs:group ref="registerPropertiesGroup" minOccurs="0"/>
  484. <!-- peripherals is containing all peripherals -->
  485. <xs:element name="peripherals">
  486. <xs:complexType>
  487. <xs:sequence>
  488. <xs:element name="peripheral" type="peripheralType" minOccurs="1" maxOccurs="unbounded"/>
  489. </xs:sequence>
  490. </xs:complexType>
  491. </xs:element>
  492. <!-- Vendor Extensions: this section captures custom extensions. This section will be ignored by default -->
  493. <xs:element name="vendorExtensions" minOccurs="0" maxOccurs="1">
  494. <xs:complexType>
  495. <xs:sequence>
  496. <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
  497. </xs:any>
  498. </xs:sequence>
  499. </xs:complexType>
  500. </xs:element>
  501. </xs:sequence>
  502. <xs:attribute name="schemaVersion" type="xs:decimal" use="required" fixed="1.1"/>
  503. </xs:complexType>
  504. </xs:element>
  505. </xs:schema>