Advertisement
Guest User

Untitled

a guest
Sep 17th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.53 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <GadgeteerDefinitions xmlns="http://schemas.microsoft.com/Gadgeteer/2011/Hardware">
  3.   <ModuleDefinitions>
  4.     <!-- This module definition should be filled in.  Mouse over any attribute name to get more help about that attribute. -->
  5.     <!-- The Unique ID is auto-generated and does not usually need to be modified. -->
  6.     <ModuleDefinition Name="UsbHost"
  7.                  UniqueId="7ed5f02c-67e1-4cc9-8730-c11e3f5877c0"
  8.                  Manufacturer="GHI Electronics"
  9.                  Description="A UsbHost module"
  10.                  InstanceName="usbHost"
  11.                  Type="Gadgeteer.Modules.GHIElectronics.UsbHost"
  12.                  ModuleSuppliesPower="false"
  13.                  HardwareVersion="1.0"
  14.                  Image="Resources\Image.jpg"
  15.                  BoardHeight="22"
  16.                  BoardWidth="32"
  17.                  MinimumGadgeteerCoreVersion="2.42.500"
  18.                  HelpUrl="tinyclr.com"
  19.                 >
  20.  
  21.       <!-- Assemblies listed here are added to the project as references by the designer whenever this module is instantiated.  -->
  22.       <!-- This functionality is used to -->
  23.       <!--   (1) include the output assemblies of this template -->
  24.       <!--   (2) include other custom assemblies that the module relies on (NB you must edit msm.wxs so these are installed too) -->
  25.       <!--   (3) indicate a reliance on a Gadgeteer assembly other than Gadgeteer.dll (which is always referenced) -->
  26.       <!-- Some examples are provided inline: -->
  27.       <Assemblies>
  28.         <!-- This lists the assemblies which provides the API to this module, i.e. the output assemblies of this template. ((1) in the list above) -->
  29.         <!-- If you do not provide support for both NETMF 4.1 and 4.2, the relevant lines should be removed -->
  30.         <!-- NB you should use the same name for the same assembly's NETMF 4.1 and NETMF 4.2 versions, since this will make it easier for users to change framework versions -->
  31.         <Assembly MFVersion="4.1" Name="GTM.GHIElectronics.UsbHost"/>
  32.         <Assembly MFVersion="4.2" Name="GTM.GHIElectronics.UsbHost"/>
  33.  
  34.         <!-- If your module relies on another assembly, then list it here (and see the msm.wxs file since you need to include it in the installer too), e.g.: -->
  35.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.Hardware" ErrorMessage="A required library could not be found."/>
  36.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.IO" ErrorMessage="A required library could not be found."/>
  37.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.System" ErrorMessage="A required library could not be found."/>
  38.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.USBHost" ErrorMessage="A required library could not be found."/>
  39.  
  40.         <Assembly MFVersion="4.2" Name="GHI.Premium.Hardware" ErrorMessage="A required library could not be found."/>
  41.         <Assembly MFVersion="4.2" Name="GHI.Premium.IO" ErrorMessage="A required library could not be found."/>
  42.         <Assembly MFVersion="4.2" Name="GHI.Premium.System" ErrorMessage="A required library could not be found."/>
  43.         <Assembly MFVersion="4.2" Name="GHI.Premium.USBHost" ErrorMessage="A required library could not be found."/>
  44.  
  45.         <!-- If your module either relies upon or is often used with a .NET Gadgeteer assembly other than Gadgeteer.dll, then list it here -->
  46.         <!-- so that the designer automatically includes it when your module is included - e.g. by uncommenting the lines below -->
  47.         <!-- These .NET Gadgeteer assemblies were separated out for NETMF 4.2, so don't need to be listed for NETMF 4.1 as separate -->
  48.         <!-- Uncomment any of the below that you require for this module. -->
  49.         <!--
  50.        <Assembly MFVersion="4.2" Name="Gadgeteer.SPI" />
  51.        <Assembly MFVersion="4.2" Name="Gadgeteer.Serial" />
  52.        <Assembly MFVersion="4.2" Name="Gadgeteer.DaisyLink" />
  53.        -->
  54.  
  55.         <!-- If this is a networking module, then uncomment all four lines below to include Gadgeteer's web client/web server libraries -->
  56.         <!--
  57.        <Assembly MFVersion="4.1" Name="Gadgeteer.WebClient" />
  58.        <Assembly MFVersion="4.1" Name="Gadgeteer.WebServer" />
  59.        <Assembly MFVersion="4.2" Name="Gadgeteer.WebClient" />
  60.        <Assembly MFVersion="4.2" Name="Gadgeteer.WebServer" />
  61.        -->
  62.       </Assemblies>
  63.  
  64.       <!--
  65.      This is an example socket specification with two sockets on the board.  
  66.      The socket positions are specified in mm from the top left corner of the board, with the orientation 90 indicating the socket notches are pointing upwards (0=right, 180=left, 270=down)
  67.      -->
  68.       <Sockets>
  69.  
  70.         <!-- This socket is compatible with socket type H which has electrical connections to pins 3,4 and 5 -->
  71.         <Socket Left="14.41" Top="18.75" Orientation="90" ConstructorOrder="1" TypesLabel="H">
  72.           <Types>
  73.             <Type>H</Type>
  74.           </Types>
  75.           <Pins>
  76.             <Pin Shared="false">3</Pin>
  77.             <Pin Shared="false">4</Pin>
  78.             <Pin Shared="false">5</Pin>
  79.           </Pins>
  80.         </Socket>
  81.  
  82.       </Sockets>
  83.      
  84.       <!-- Use the ExtraLibrariesRequired element if this module requires specific firmware libraries to be provided by the mainboard, and so is limited to a subset of mainboards. -->
  85.       <ExtraLibrariesRequired>
  86.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.Hardware" ErrorMessage="A required library could not be found."/>
  87.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.IO" ErrorMessage="A required library could not be found."/>
  88.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.System" ErrorMessage="A required library could not be found."/>
  89.         <Assembly MFVersion="4.1" Name="GHIElectronics.NETMF.USBHost" ErrorMessage="A required library could not be found."/>
  90.  
  91.         <Assembly MFVersion="4.2" Name="GHI.Premium.Hardware" ErrorMessage="A required library could not be found."/>
  92.         <Assembly MFVersion="4.2" Name="GHI.Premium.IO" ErrorMessage="A required library could not be found."/>
  93.         <Assembly MFVersion="4.2" Name="GHI.Premium.System" ErrorMessage="A required library could not be found."/>
  94.         <Assembly MFVersion="4.2" Name="GHI.Premium.USBHost" ErrorMessage="A required library could not be found."/>
  95.       </ExtraLibrariesRequired>
  96.  
  97.  
  98.       <!-- Also use the ExtraLibrariesRequired element if this module represents built-in functionality in a mainboard, listing the mainboard's driver as the required assembly. -->
  99.       <!--
  100.      <ExtraLibrariesRequired>
  101.        <Assembly MFVersion="4.1" Name="GHIElectronics.Gadgeteer.MainboardName" ErrorMessage="This module is built-in to the MainboardName mainboard, so cannot be used with any other mainboard." />
  102.        <Assembly MFVersion="4.2" Name="GHIElectronics.Gadgeteer.MainboardName" ErrorMessage="This module is built-in to the MainboardName mainboard, so cannot be used with any other mainboard." />
  103.      </ExtraLibrariesRequired>
  104.      -->
  105.  
  106.       <!-- Use the ProvidedSocket tag if this module provides a socket that another module can plug into -->
  107.       <!-- The example below is for DaisyLink modules which provide a socket type "*" -->
  108.       <!--
  109.      <ProvidedSockets>
  110.        <ProvidedSocket Label="*" Left="30" Top="10" Orientation="0" ConstructorParameter="DaisyLinkSocketNumber">
  111.          <Types>
  112.            <Type>*</Type>
  113.          </Types>
  114.        </ProvidedSocket>
  115.      </ProvidedSockets>
  116.      -->
  117.  
  118.     </ModuleDefinition>
  119.   </ModuleDefinitions>
  120. </GadgeteerDefinitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement