mirror of https://github.com/contiki-ng/mspsim
removed obsolete method
This commit is contained in:
parent
bc1027e494
commit
8185d7b60c
|
|
@ -99,23 +99,12 @@ public abstract class IOUnit implements InterruptHandler, Loggable {
|
||||||
|
|
||||||
// write
|
// write
|
||||||
// write a value to the IO unit
|
// write a value to the IO unit
|
||||||
public abstract void write(int address, int value, boolean word,
|
public abstract void write(int address, int value, boolean word, long cycles);
|
||||||
long cycles);
|
|
||||||
|
|
||||||
// read
|
// read
|
||||||
// read a value from the IO unit
|
// read a value from the IO unit
|
||||||
public abstract int read(int address, boolean word, long cycles);
|
public abstract int read(int address, boolean word, long cycles);
|
||||||
|
|
||||||
// Utility function for converting 16 bits data to correct return
|
|
||||||
// value depending on address alignment and word/byte mode
|
|
||||||
public static int return16(int address, int data, boolean word) {
|
|
||||||
if (word) return data;
|
|
||||||
// First byte => low byte
|
|
||||||
if ((address & 1) == 0) return data & 0xff;
|
|
||||||
// Second byte => hi byte
|
|
||||||
return (data >> 8) & 0xff;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue