- xml/dtd updated (using XInclude)
- templates moved to /general folder git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@62 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
37
mcdp/resources/targets/general/device.dtd
Normal file
37
mcdp/resources/targets/general/device.dtd
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
|
||||
<!-- DTD for memory devices. -->
|
||||
|
||||
<!ELEMENT device (attributes, size?, segment+, init?)>
|
||||
<!ATTLIST device
|
||||
type CDATA #REQUIRED
|
||||
width (1|2|4) #REQUIRED>
|
||||
<!ELEMENT segment (attributes?, base, size, subsegment*, subsegmentList?)>
|
||||
<!ATTLIST segment
|
||||
name CDATA #REQUIRED>
|
||||
<!ELEMENT subsegment (attributes?, base?, size?, subsegment*)>
|
||||
<!ATTLIST subsegment
|
||||
name CDATA #REQUIRED>
|
||||
<!ELEMENT subsegmentList (attributes?, size)>
|
||||
<!ATTLIST subsegmentList
|
||||
name CDATA #REQUIRED
|
||||
numberOfEntries CDATA #REQUIRED
|
||||
startID CDATA #IMPLIED>
|
||||
<!ELEMENT size (#PCDATA)>
|
||||
<!ELEMENT base (#PCDATA)>
|
||||
<!ELEMENT attributes EMPTY>
|
||||
<!ATTLIST attributes
|
||||
mode (replace | change) #IMPLIED
|
||||
read (add | remove) #IMPLIED
|
||||
write (add | remove) #IMPLIED
|
||||
const (add | remove) #IMPLIED
|
||||
code (add | remove) #IMPLIED
|
||||
var (add | remove) #IMPLIED
|
||||
sysconst (add | remove) #IMPLIED
|
||||
heap (add | remove) #IMPLIED
|
||||
stack (add | remove) #IMPLIED>
|
||||
<!ELEMENT init (assignment+)>
|
||||
<!ELEMENT assignment (#PCDATA)>
|
||||
<!ATTLIST assignment
|
||||
name CDATA #REQUIRED
|
||||
type (value | uri) #REQUIRED>
|
||||
17
mcdp/resources/targets/general/memoryMap.dtd
Normal file
17
mcdp/resources/targets/general/memoryMap.dtd
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
|
||||
<!-- DTD for MPC555 memoryMap. -->
|
||||
|
||||
<!ELEMENT memorymap (xi:include+)>
|
||||
<!ATTLIST memorymap
|
||||
xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude">
|
||||
<!ELEMENT xi:include EMPTY>
|
||||
<!ATTLIST xi:include
|
||||
xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude"
|
||||
href CDATA #IMPLIED
|
||||
parse (xml|text) "xml"
|
||||
xpointer CDATA #IMPLIED
|
||||
encoding CDATA #IMPLIED
|
||||
accept CDATA #IMPLIED
|
||||
accept-language CDATA #IMPLIED
|
||||
>
|
||||
18
mcdp/resources/targets/general/registerDictionary.dtd
Normal file
18
mcdp/resources/targets/general/registerDictionary.dtd
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
|
||||
<!-- DTD template for a RegisterDictionary.
|
||||
Note: the type values are microcontroller specific and need to be adapted
|
||||
to the specific register used in this registerDict.
|
||||
-->
|
||||
|
||||
<!ELEMENT registerDefinitions ((registerGroup*, register*) | (register*, registerGroup*))>
|
||||
<!ELEMENT registerGroup (register+)>
|
||||
<!ATTLIST registerGroup
|
||||
baseAddress CDATA #REQUIRED>
|
||||
<!ELEMENT register (description?)>
|
||||
<!ATTLIST register
|
||||
name CDATA #REQUIRED
|
||||
type (type1|type2|type3) #REQUIRED
|
||||
value CDATA #REQUIRED
|
||||
size (1|2|4) #REQUIRED>
|
||||
<!ELEMENT description (#PCDATA)>
|
||||
Reference in New Issue
Block a user