]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/MoteClockC.nc
Temp fix for ADC_VECTOR undefined for msp430f2x1x
[tinyos-2.x.git] / tos / platforms / tmicore / MoteClockC.nc
index 46da184eac1311a3461f54e1134d900508119a0d..466560921af0527233b5142d6d8ead3c0e8ae379 100644 (file)
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /**
  * Set the DCO and ACLK specs here, effectively overriding those in
  * $TOSDIR/tos/chips/msp430/timer/Msp430DcoSpec.h  This is a little hokey.
  * I think I'd rather do it using a generic interface.
- * 
- * @author R. Steve McKown <smckown@gmail.com>
+ *
+ * @author R. Steve McKown <rsmckown@gmail.com>
  */
-#define MS430DCOSPEC_H
-#define TARGET_DCO_KHZ 8192 // the target DCO clock rate in binary kHz
-#define ACLK_KHZ 32 // the ACLK rate in binary kHz
 
 configuration MoteClockC {
   provides interface Init as MoteClockInit;
@@ -46,7 +42,6 @@ implementation {
   components MoteClockP;
   MoteClockInit = MoteClockP.Init;
 
-  components Msp430ClockC;
+  components new Msp430ClockC(8192, 32);
   MoteClockP.SubInit -> Msp430ClockC.Init;
-  //MoteClockP.Msp430ClockInit -> Msp430ClockC;
 }