diff --git a/emulation/peripherals/BetrustedEcI2C.cs b/emulation/peripherals/BetrustedEcI2C.cs index 94ddfec8a..f92395c58 100644 --- a/emulation/peripherals/BetrustedEcI2C.cs +++ b/emulation/peripherals/BetrustedEcI2C.cs @@ -28,7 +28,7 @@ namespace Antmicro.Renode.Peripherals.I2C dataFromSlave = new Queue(); IRQ = new GPIO(); - irqTimeoutCallback = new ClockEntry((ulong)5, ClockEntry.FrequencyToRatio(machine, 1000), this.FinishTransaction, machine, "Irq Scheduler"); + irqTimeoutCallback = new ClockEntry((ulong)5, 1000, this.FinishTransaction, machine, "Irq Scheduler"); var registersMap = new Dictionary() { diff --git a/emulation/peripherals/BetrustedSocI2C.cs b/emulation/peripherals/BetrustedSocI2C.cs index db6f68b9f..17939bc8b 100644 --- a/emulation/peripherals/BetrustedSocI2C.cs +++ b/emulation/peripherals/BetrustedSocI2C.cs @@ -27,7 +27,7 @@ namespace Antmicro.Renode.Peripherals.I2C dataFromSlave = new Queue(); IRQ = new GPIO(); - irqTimeoutCallback = new ClockEntry((ulong)5, ClockEntry.FrequencyToRatio(machine, 1000), this.FinishTransaction, machine, "Irq Scheduler"); + irqTimeoutCallback = new ClockEntry((ulong)5, 1000, this.FinishTransaction, machine, "Irq Scheduler"); var registersMap = new Dictionary() { diff --git a/emulation/peripherals/BetrustedWatchdog.cs b/emulation/peripherals/BetrustedWatchdog.cs index c8d421e8c..f55d59509 100644 --- a/emulation/peripherals/BetrustedWatchdog.cs +++ b/emulation/peripherals/BetrustedWatchdog.cs @@ -19,7 +19,7 @@ namespace Antmicro.Renode.Peripherals.Timers { public BetrustedWatchdog(Machine machine) : base(machine) { - machine.ClockSource.AddClockEntry(new ClockEntry(10, ClockEntry.FrequencyToRatio(this, 1000), OnTick, this, String.Empty)); + machine.ClockSource.AddClockEntry(new ClockEntry(10, 1000, OnTick, this, String.Empty)); var registersMap = new Dictionary() { {(long)Registers.Watchdog, new DoubleWordRegister(this) @@ -103,4 +103,4 @@ namespace Antmicro.Renode.Peripherals.Timers State = 0x8, } } -} \ No newline at end of file +} diff --git a/emulation/peripherals/ticktimer.cs b/emulation/peripherals/ticktimer.cs index 0cfc588df..8213abf0e 100644 --- a/emulation/peripherals/ticktimer.cs +++ b/emulation/peripherals/ticktimer.cs @@ -23,7 +23,7 @@ namespace Antmicro.Renode.Peripherals.Timers { public TickTimer(Machine machine, ulong periodInMs = 1) : base(machine) { - machine.ClockSource.AddClockEntry(new ClockEntry(periodInMs, ClockEntry.FrequencyToRatio(this, 1000), OnTick, this, "TickTimer")); + machine.ClockSource.AddClockEntry(new ClockEntry(periodInMs, 1000, OnTick, this, "TickTimer")); this.IRQ = new GPIO(); DefineRegisters(); }