Package avrora.sim

Examples of avrora.sim.InterruptTable


        Mon(Simulator s) {
            this.simulator = s;
            props = simulator.getMicrocontroller().getProperties();
            interpreter = s.getInterpreter();
            interruptBase = interpreter.getInterruptBase();
            InterruptTable itable = interpreter.getInterruptTable();
            itable.insertProbe(new InterruptProbe());

            stack = new String[MAX_STACK_DEPTH];
            stack[0] = "";

            Program p = s.getProgram();
View Full Code Here


        boolean invokeOnly;

        Mon(Simulator s) {
            simulator = s;
            props = simulator.getMicrocontroller().getProperties();
            InterruptTable interruptTable = simulator.getInterpreter().getInterruptTable();
            interruptTable.insertProbe(this);
            interrupts = interruptTable;
            int numInts = interrupts.getNumberOfInterrupts();
            invocations = new long[numInts];
            lastInvoke = new long[numInts];
            lastPost = new long[numInts];
View Full Code Here

        final ATMegaFamily.FlagBit RXC_flag;

        byte value;

        public ControlRegisterA() {
            InterruptTable it = USART.this.interpreter.getInterruptTable();
            UDRE_flag = new ATMegaFamily.FlagBit(it, false, properties.USART_UDRE_inum);
            TXC_flag = new ATMegaFamily.FlagBit(it, true, properties.USART_TX_inum);
            RXC_flag = new ATMegaFamily.FlagBit(it, false, properties.USART_RX_inum);
            // user data register is empty initially
            UDRE_flag.flag();
View Full Code Here

            Simulation.Node node = (Simulation.Node) extSync.getNodeMap().get(new Integer(nodeId));
            if (node == null) Avrora.userError("Not a valid NodeID: "+nodeId);
           
            Simulator       sim         = node.getSimulator();
            BaseInterpreter interpreter = sim.getInterpreter();
            InterruptTable  intTable    = interpreter.getInterruptTable();
           
            // Fire interrupt again
            extSync.enableInterrupt(nodeId);
           
          }
View Full Code Here

TOP

Related Classes of avrora.sim.InterruptTable

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.