updated to latest version of MSPSim with improved support for Dwarf
This commit is contained in:
parent
d6db9e4e86
commit
4bac5ac7b9
4 changed files with 10 additions and 24 deletions
|
@ -46,6 +46,7 @@ import se.sics.cooja.mspmote.MspMoteTimeEvent;
|
|||
import se.sics.mspsim.core.IOUnit;
|
||||
import se.sics.mspsim.core.USART;
|
||||
import se.sics.mspsim.core.USARTListener;
|
||||
import se.sics.mspsim.core.USARTSource;
|
||||
|
||||
/**
|
||||
* @author Fredrik Osterlind
|
||||
|
@ -73,13 +74,9 @@ public class MspSerial extends SerialUI implements SerialPort {
|
|||
if (ioUnit instanceof USART) {
|
||||
usart = (USART) ioUnit;
|
||||
usart.setUSARTListener(new USARTListener() {
|
||||
public void dataReceived(USART arg0, int arg1) {
|
||||
MspSerial.this.dataReceived(arg1);
|
||||
}
|
||||
public void stateChanged(int state) {
|
||||
if (state == USARTListener.RXFLAG_CLEARED) {
|
||||
/*tryWriteNextByte();*/
|
||||
}
|
||||
@Override
|
||||
public void dataReceived(USARTSource source, int data) {
|
||||
MspSerial.this.dataReceived(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -31,18 +31,8 @@
|
|||
|
||||
package se.sics.cooja.mspmote.interfaces;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Collection;
|
||||
import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jdom.Element;
|
||||
|
@ -62,6 +52,7 @@ import se.sics.cooja.mspmote.MspMoteTimeEvent;
|
|||
import se.sics.mspsim.core.IOUnit;
|
||||
import se.sics.mspsim.core.USART;
|
||||
import se.sics.mspsim.core.USARTListener;
|
||||
import se.sics.mspsim.core.USARTSource;
|
||||
|
||||
/**
|
||||
* TR1001 radio interface on ESB platform.
|
||||
|
@ -200,7 +191,7 @@ public class TR1001Radio extends Radio implements USARTListener, CustomDataRadio
|
|||
}
|
||||
|
||||
/* USART listener support */
|
||||
public void dataReceived(USART source, int data) {
|
||||
public void dataReceived(USARTSource source, int data) {
|
||||
if (!isTransmitting()) {
|
||||
/* New transmission discovered */
|
||||
/*logger.info("----- NEW TR1001 TRANSMISSION DETECTED -----");*/
|
||||
|
@ -253,9 +244,6 @@ public class TR1001Radio extends Radio implements USARTListener, CustomDataRadio
|
|||
}
|
||||
}
|
||||
|
||||
public void stateChanged(int state) {
|
||||
}
|
||||
|
||||
/* General radio support */
|
||||
public boolean isTransmitting() {
|
||||
return isTransmitting;
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,8 @@
|
|||
# contikichecker
|
||||
|
||||
#start the nodegui service
|
||||
service controlgui start
|
||||
service nodegui start
|
||||
#service stackchart start
|
||||
service -f controlgui start
|
||||
service -f nodegui start
|
||||
service -f serialgui start
|
||||
#service -f stackchart start
|
||||
start
|
||||
|
|
Loading…
Reference in a new issue