+++ /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 AccelC ()\r
-{\r
- provides interface Init;\r
- provides interface StdControl;\r
- provides interface Read<uint16_t> as AccelX;\r
- provides interface Read<uint16_t> as AccelY;\r
-}\r
-implementation\r
-{\r
- components AccelConfigP,\r
- new AdcReadClientC() as AdcX,\r
- new AdcReadClientC() as AdcY;\r
-\r
- Init = AccelConfigP;\r
- StdControl = AccelConfigP;\r
-\r
- AccelX = AdcX;\r
- AdcX.Atm128AdcConfig -> AccelConfigP.ConfigX;\r
- AdcX.ResourceConfigure -> AccelConfigP.ResourceX;\r
-\r
- AccelY = AdcY;\r
- AdcY.Atm128AdcConfig -> AccelConfigP.ConfigY;\r
- AdcY.ResourceConfigure -> AccelConfigP.ResourceY;\r
-}\r
-\r