Initialize Component Management
This commit is contained in:
@ -2,14 +2,15 @@ package fabrik.simulator.pic16f84;
|
||||
|
||||
import fabrik.simulator.pic16f84.interfaces.*;
|
||||
|
||||
public class PreScaler {
|
||||
public class PreScaler extends PICComponent implements PICComponentInterface {
|
||||
|
||||
private final int PSA = 0x3;
|
||||
private final int OPTION = 0x81;
|
||||
private final DataRegisterInterface dataRegister;
|
||||
private final TimerInterface timer;
|
||||
private int scaler;
|
||||
|
||||
public PreScaler (DataRegisterInterface dataRegister, TimerInterface timer) {
|
||||
super();
|
||||
scaler = 0b111;
|
||||
this.dataRegister = dataRegister;
|
||||
this.timer = timer;
|
||||
@ -48,4 +49,9 @@ public class PreScaler {
|
||||
timer.increment(manual);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize(PICComponents picComponents) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user