--- /dev/null
+// $Id$\r
+\r
+/* tab:4\r
+ * "Copyright (c) 2000-2003 The Regents of the University of California.\r
+ * All rights reserved.\r
+ *\r
+ * Permission to use, copy, modify, and distribute this software and its\r
+ * documentation for any purpose, without fee, and without written agreement is\r
+ * hereby granted, provided that the above copyright notice, the following\r
+ * two paragraphs and the author appear in all copies of this software.\r
+ *\r
+ * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR\r
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT\r
+ * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF\r
+ * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+ * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,\r
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\r
+ * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS\r
+ * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO\r
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."\r
+ *\r
+ * Copyright (c) 2002-2003 Intel Corporation\r
+ * All rights reserved.\r
+ *\r
+ * This file is distributed under the terms in the attached INTEL-LICENSE\r
+ * file. If you do not find these files, copies can be found by writing to\r
+ * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,\r
+ * 94704. Attention: Intel License Inquiry.\r
+ */\r
+#include "mts300.h"\r
+\r
+generic configuration MagC ()\r
+{\r
+ provides interface Init;\r
+ provides interface StdControl;\r
+ provides interface Read<uint16_t> as MagX;\r
+ provides interface Read<uint16_t> as MagY;\r
+ provides interface Mag;\r
+}\r
+implementation\r
+{\r
+ components MagConfigP,\r
+ new AdcReadClientC() as AdcX,\r
+ new AdcReadClientC() as AdcY;\r
+\r
+ Init = MagConfigP;\r
+ StdControl = MagConfigP;\r
+ Mag = MagConfigP;\r
+\r
+ MagX = AdcX;\r
+ AdcX.Atm128AdcConfig -> MagConfigP.ConfigX;\r
+ AdcX.ResourceConfigure -> MagConfigP.ResourceX;\r
+\r
+ MagY = AdcY;\r
+ AdcY.Atm128AdcConfig -> MagConfigP.ConfigY;\r
+ AdcY.ResourceConfigure -> MagConfigP.ResourceY;\r
+}\r
+\r