* (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;
components MoteClockP;
MoteClockInit = MoteClockP.Init;
- components Msp430ClockC;
+ components new Msp430ClockC(8192, 32);
MoteClockP.SubInit -> Msp430ClockC.Init;
- //MoteClockP.Msp430ClockInit -> Msp430ClockC;
}