Package avrora.sim.clock

Examples of avrora.sim.clock.ClockDomain


         * @param f the interpreter factory for the node
         * @param p the program to load onto the node
         * @return a new instance of the <code>Mica2</code> platform
         */
        public Platform newPlatform(int id, InterpreterFactory f, Program p) {
            ClockDomain cd = new ClockDomain(MAIN_HZ);
            cd.newClock("external", 32768);

            return new Mica2(new ATMega128(id, cd, f, p));
        }
View Full Code Here


         * @param f the interpreter factory for the node
         * @param p the program to load onto the node
         * @return a new instance of the <code>Mica2</code> platform
         */
        public Platform newPlatform(int id, InterpreterFactory f, Program p) {
            ClockDomain cd = new ClockDomain(MAIN_HZ);
            cd.newClock("external", 32768);

            return new MicaZ(new ATMega128(id, cd, f, p));
        }
View Full Code Here

         * @param f the interpreter factory capable of creating a new interpreter for this platform
         * @param p the program to load into the platform
         * @return a new instance of the <code>Platform</code> interface for this platform
         */
        public Platform newPlatform(int id, InterpreterFactory f, Program p) {
            ClockDomain cd = new ClockDomain(mainClockSpeed);
            cd.newClock("external", extClockSpeed);
            return new DefaultPlatform(id, mcf.newMicrocontroller(id, cd, f, p));
        }
View Full Code Here

        addDevices();
    }

    public static class Factory implements PlatformFactory {
        public Platform newPlatform(int id, InterpreterFactory f, Program p) {
            ClockDomain cd = new ClockDomain(7372800);
            cd.newClock("external", 32768);
   
            return new Seres(new ATMega128(id, cd, f, p));
        }
View Full Code Here

        return DEFAULT_IF;
    }

    public static Simulator newSimulator(int id, String mcu, long hz, long exthz, InterpreterFactory factory, Program p) {
        MicrocontrollerFactory f = getMicrocontroller(mcu);
        ClockDomain cd = new ClockDomain(hz);
        cd.newClock("external", exthz);

        return f.newMicrocontroller(id, cd, factory, p).getSimulator();
    }
View Full Code Here

TOP

Related Classes of avrora.sim.clock.ClockDomain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.