Package se.sics.mspsim.core

Examples of se.sics.mspsim.core.USART


        port4.addPortListener(this);

        port5 = cpu.getIOUnit(IOPort.class, "P5");
        port5.addPortListener(this);

        USART usart0 = cpu.getIOUnit(USART.class, "USART0");
        radio = new CC2420(cpu);
        radio.setCCAPort(port1, CC2420_CCA);
        radio.setFIFOPPort(port1, CC2420_FIFOP);
        radio.setFIFOPort(port1, CC2420_FIFO);

        usart0.addUSARTListener(this);
        radio.setSFDPort(port4, CC2420_SFD);

        USART usart = cpu.getIOUnit(USART.class, "USART1");
        if (usart != null) {
            registry.registerComponent("serialio", usart);
        }
    }
View Full Code Here


        }
        if (!config.getPropertyAsBoolean("nogui", true)) {
            setupGUI();

            // Add some windows for listening to serial output
            USART usart = cpu.getIOUnit(USART.class, "USART1");
            if (usart != null) {
                SerialMon serial = new SerialMon(usart, "USART1 Port Output");
                registry.registerComponent("serialgui", serial);
            }
            if (stats != null) {
View Full Code Here

        ramMirrorConfig(0x200, 2 * 1024, 0x1100);
    }
   

    public int setup(MSP430Core cpu, ArrayList<IOUnit> ioUnits) {
        USART usart0 = new USART(cpu, 0, cpu.memory, 0x70);
        USART usart1 = new USART(cpu, 1, cpu.memory, 0x78);
        cpu.setIORange(0x70, 8, usart0);
        cpu.setIORange(0x78, 8, usart1);

        Multiplier mp = new Multiplier(cpu, cpu.memory, 0);
        cpu.setIORange(0x130, 0x0f, mp);
View Full Code Here

    port2 = cpu.getIOUnit(IOPort.class, "P2");
    port2.addPortListener(this);
    port5 = cpu.getIOUnit(IOPort.class, "P5");
    port5.addPortListener(this);

    USART usart0 = cpu.getIOUnit(USART.class, "USART0");
    if (usart0 == null) {
        throw new EmulationException("Could not setup mote - missing USART0");
    }
    radio = new TR1001(cpu, usart0);

    leds = new Leds(cpu, LEDS);
    button = new Button("Button", cpu, port2, BUTTON_PIN, true);
    beeper = new Beeper(cpu);

    USART usart = cpu.getIOUnit(USART.class, "USART1");
    if (usart != null) {
        registry.registerComponent("serialio", usart);
    }
  }
View Full Code Here

      setupGUI();

      beeper.setSoundEnabled(true);

      // Add some windows for listening to serial output
      USART usart = cpu.getIOUnit(USART.class, "USART1");
      if (usart != null) {
          SerialMon serial = new SerialMon(usart, "USART1 Port Output");
          registry.registerComponent("serialgui", serial);
      }
View Full Code Here

TOP

Related Classes of se.sics.mspsim.core.USART

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.