更新 UART_kx12A4_128.cs
This commit is contained in:
@@ -222,15 +222,15 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
|
|||||||
|
|
||||||
IRQ.Set(interrupt);
|
IRQ.Set(interrupt);
|
||||||
|
|
||||||
if (interrupt)
|
// if (interrupt)
|
||||||
{
|
// {
|
||||||
this.Log(LogLevel.Info, "Interrupt asserted");
|
// this.Log(LogLevel.Info, "Interrupt asserted");
|
||||||
machine.ScheduleAction(TimeInterval.FromMicroseconds(1),
|
// machine.ScheduleAction(TimeInterval.FromMicroseconds(1),
|
||||||
_ => {
|
// _ => {
|
||||||
IRQ.Set(false);
|
// IRQ.Set(false);
|
||||||
this.Log(LogLevel.Info, "Interrupt deasserted");
|
// this.Log(LogLevel.Info, "Interrupt deasserted");
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -480,10 +480,11 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
|
|||||||
}
|
}
|
||||||
|
|
||||||
usr = (byte)(usr | USR_RBFI); //usr寄存器,置接收中断
|
usr = (byte)(usr | USR_RBFI); //usr寄存器,置接收中断
|
||||||
machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
|
|
||||||
_ => {
|
|
||||||
UpdateInterrupts();
|
UpdateInterrupts();
|
||||||
});
|
// machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
|
||||||
|
// _ => {
|
||||||
|
// UpdateInterrupts();
|
||||||
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user